Updated to not produce spurious newline