Added port open checks & threads