Added optional parameter port

Please see my last commit.

Thanks in advance,
Pascal

PS: This is my first commit, so please bare with me if I didnt do this the correct way. :)