Completed index cleaning functions