Cleaning up the code from motors.