Added averaging and normalizing to BM