Added sleep function to IMU for testing.