Worked on build_index