First version with sharding