Changed add_sector() to use save_object().