Allow output of simple or weighted average