Replace Equals logic with reflect