Added functionality to deal with multiple of each type of SAM file