Added possibility to cancel the demo.