Added more parameters to configure event behaviour