Conditions in trMain