Added a method to get the object for a position.