Improved row length code.

Still not exposed on the front page though.