Factored out demo initialisation