Revised to fix sequential ordering issue when removing item from list