Enabled interrupts

Interrupts are now turned on if a valid function pointer (Not a null
pointer) is sent as an argument.
The function pointer is also not set if the pointer is a null pointer.