Added average aic calculation