if event.type == "program" then mem.events = {} end if event.type == "digiline" then table.insert(mem.events, event) end