Added time utils. Generate times