Added a timer based RPM control loop