Added getNextPartition to DataStore