Add some doc for with_config