Clean up printing to stdout