Implemented the frame motor.