Added timers and difference threshold.