Finalize changes in average file