Moved in the variable declaration since we don't need it outside the loop