Fixed segfault on port number. TO DO: Add all of this stuff (parameters, settings) to the server