Yep, don't want to do `var elem` within the loop