Added automatic IRQ generation enable/disable