Implemented time-out in gyro code