added Duration function to zapevent, dunno if it works