Added iteration number to metrics.py and mechanism.py