Added ability to set configure number of shards and replicas