Added recipe for attaching event listener.