Add domain shard logic.