Configuring portal detection functions