Added gettail() method