Implementing the IRQ and the PIT