Updated port.c