Made logic for config handler