Made it possible to add different timer intervals to the tick function.