@jansepar I'd move the check for `optOut` before `detector`.