Code after indexing using username