Logging and print issues fixed.