Updated demo to use config file