Added the handing of user interrupts.