Optionally allow max number of lines
Pass in the maximum number of lines