Added newer get_object_x function