New function in config to call custom events