Implemented get_position.