Changing errors to print to stderr, and messages to print to stdout.