Adds methods to retrieve element position.