Added pipeToModule option to facilitate further processing without the need to write and then read in a metadata file.