Logging more cleanly to stdout.