Added syntax error function