Now using sys.stderr for error reporting.