Added config->discover flag