Updated port parsing.