%variable is resolved when you define the timer, prevent this by using $(%variable,0)