Set config to value of method not string of method name