Added event logging to console.