Added malang error for invalid comparisons.