Finish to cut he add function in index-add.