Added in Rajeevs infinite loop code.