Added freezing check.