Delete all production code and rewrite