Made m_tail usable. Added tests.