Added custom event listener.