Modified get to use line instead of read.