The start of the rewrite. Code will compile but not work.