Removed code for error management due to parsing, the code has been moved to the parser.