Use the writeln function of the output instead of a plain echo.