Add feature: maximum number of lines diplayed