Added the initial indexing method