Added flag so that errors are only flushed to std::err if explicitly specified