Initial rewrite.