Changed debug ouput a little.

The lambda-while annoys me to death it should look simpler than that.