Added movement function.