Improved logging output.