Changed timing values from ticks to milliseconds.