local alt, inter, old_step, step = 0, 50, 0

for alt=1, 1000, 1
do 
   local step = alt % inter
   if (step > old_step) then
     old_step = step
    end
    print("Alarm", step, "Alt", alt)
end
print("Hello")