Extracted config-function