Updated log messages and comments.