Started adding support for custom ports
Now fetches the port from preferences instead