Changes to getPosition, added more functions to getPosition effectively