added a second argument for pac_event which when set to 1 it enables the command event forever until it's set back to 0 (toggle events!!!)