Added fix for downsampling.
Updated to use the downsampling for the coverage calculation.