Move tick generation outside hinton()