Changed some comments and flipped some loops around.