Implement per-step statistics and labeling.