Adds passing $params to event handlers