Adding N-of-M sharding for clidriver.