Made a config function