Checked for variables being defined in reduce.py