Made 'max-threads' a configuration property for the server.