Cleaning up index.