Cast port to long long, this is ugly.