Updated event listener.