Used setTaskIndexInList function instead