Add configuration logic.