Use configuration obejct instead of a large hash