Improved logging system.