Improving the function to get the tail of the read