Refine demo's config and start session handling.