Renamed createIndex to ensureIndex.