Added a function to move.