New event function and interrupts update