Updating demo app to be executed in background