Slightly simplified normal distribution-producing logic.