Average cross section function updated