Refactored to use get_obj