Moved init of server to the onStart function