Functioning port handling