Adding in AND out rule for open_ports var