Do the here-document right