Added a timer to control IMU collection. UNTESTED.