Slight performance improvement for probability calculations.