Implemented machinery to implement an infinite loop problem.