interrupt/counter

You've got function and a variable called "Dim"