Forgot to move the tick variable to the top of the file in custom event emitters.