Added port function and set option
Set Shell option to set port