This code is already updated with stat.clone().
Good catch.