Handles syntax errrors