Error: Limit exceeded in FOR loop.