Make listToRemove non-recursive