Change from echo to printf to preserve newlines