Adding support functions to read port configuration