Updating equality check for comparing regions