Fixed syntax error and added parse error handling