Factored out demo/serverBackend stuff