Removed some old vestigial averaging code.