Added new loops to erstertest.py