Rewrite

Begins app rewrite.