Improving the time checker loop