Added compare checking