Separated the configuration part of the function and the warning of the intended configuration targets