Added bam outstream option