Adds event canceling