Fixed so for loops only do control math ONCE