Interval to variable

to be able to stop it later