Added protection for Syntax Errors