Added output bam per context procedure