Implement getPosition