Syntax check upgraded, is run before tonenizing