Found inconsistant returns from PR SN. Trying to deal with it....
I think I have a hack that works now. There's also a recursive call to the connect_to_ports().