Updated to use newLine() instead of \n