Added global that keeps track of portnumber