Updated to log events