Added stat tracking.