Changing configuration to use variables environment