Create common utils file and add syntax error handling.