Enhanced the sample app to do something more meaningful than print a log message.