Add line-reader implementation