Added option to limit number of lines trace shows.