Debugging loop.