Fix the timings

Also preventing the minute loop to be invoked multiple times.