Added port config method, made config clearer