Implemented MotorStop subrutine.