Figured one part out. (Thanks to xander)
I am still confused on stopping it at a certain point though…