Minor updates to get_objects function