Version 3

Finished part 4 and part 1 of the loop, still need to fully test.