Added "grammar extraction only" mode