Replace for use with each to be more Ruby like.