[Refactoring] Minor changes on index, removing unnecessary prints.