Initial commit of the rewrite.