Applied the correction for finite sampling to the p-value calculation