adding TrackedValue and automatic averaging