Added averaging option, applied to current reading.