Added ability to limit the number of lines shown in the log.