Added initializing first value of ticks.