Added heredoc support