Cleaned up get_object