Tested loop feature. Found an error, seems to be working appropriately now.