Cleaning up index