Added function for returning control to joystick