Using average instead of median to avoid big movements in the 'with iteration' values