Moved algorithm into nuke loop
More controls