Make number of header lines configurable for list()