Added the normalization of flat files before averaging.