Having $port = false here may not work. Did you check?