Tweaked sample application.