Changed the behaviour of the 'Tick' function.