Moved some error messages from stdout to stderr.