Improved the example application.