First iteration works. Need to add check node and make it run in a lot of iterations until check node is satisfied