Implement sharding