Updated output. Fixed tick starting at 1