Added firstIndex and lastIndex.