Added pattern match comparison.