Update demo to use core version 0.4.0
Change Session workflow.