Added basics for processing N lines