Rewrite the whole program.