added timings logic