Multi port config

Add multi-port support.