The put command works except it's eating the first line.