Add config option for event prevention [#1]