Changed 'cut' to 'nlines' and allow NA value.