Fixing #2

When more than one file with gzip:true is passed, the pipeline freezes. When complete, this PR should fix the issue.