Added averaging