Added merge with and fixed list tails