Beginnings of rewrite.