added config for variable demand