Added a fix to use \r\n in place of just \r