Modified demo code to show departures