Minor fixes

- Set update thread to run in background
- Added a Port variable