Improved logging messages.  Fixed syntax error.