Added the ability to disable events.