Improved some logging messages.