WASHINGTON (AP) — Homeland Security Secretary Janet Napolitano says her agency's flexibility and agility have prepared it to respond to disasters and terror attacks alike.

In her farewell speech before taking over the University of California system next month, Napolitano says the department's strengths allowed it to respond quickly and effectively to hundreds of disasters and the Boston Marathon bombing.

Napolitano also laments the failure to pass comprehensive immigration reform during her tenure. She says despite the failure of the DREAM Act for young immigrants in the country illegally, her tenure did usher in an administrative program to halt deportations for many immigrants brought to the United States as children.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.