Add the port and id logic