Added sub loop, no func check on sub