Tail working with edge cases.