Replaced intercalate with unlines.