Refactoring of moveTo functionalitiy to allow changing position from client code.