Added a FIFO to handle events and a nice timer interrupt.