Code for demo sessions