Added command-line arguments to the demo.