Finished loops. Ready for test