Adding some functions to the MotionController