Add sharding support.