Changed addTailIfNone to use size() instead of iter.