--
local interval = 900 -- Interval in seconds
local offset = interval/2 -- Offset for the timing system
if event.type == "train" then
  if atc_arrow then
    interrupt_time = (offset-os.time())%interval
    atc_send(string.format("BBWD%dRSM",interrupt_time))
  end
end