Change global variables in demos