Adding error reporting.
Allow clearing errors, track whether an error was seen.