Added end lines, and found we have an infinite loop.