Added functionality to access end of list