Change the type of variable PortConfigs to improve the readability