Fixed port setting not being used at all. Fixes #13.