Modified EventHandler constructor.