added totwords to results. Needs testing.