Added variance check