Syntax error handling implemented