Make server launchable through main.