Well, doing this by row just gives bad results.