New stats model and capture_stats command