Alternative get_tail implementation.