Use HERE-document instead of echos.