Adding configuration factory