Added the ability to use interrupts and debug the agent.