Add port functionality