Add 'openports' function