Helper to track numerical operations.