2_3: average script added.