Adding state comparison.