Rewrite demo application.