Changed time duration to ticks