Changed timings to clock cycles