Proposed a general event handler. Log messages adjustment