1) Modified ic.py to read the average distance.