Use avg of buffer instead of level