Update the demo code