Added parse error handling.