Added condition to timing function
0.4.5