Heartbeat for calculating rather than fenwick tree.