Added simple error parsing.