Add mask/unmask_int
Allow user to handle interrupts