Broke server choice out into separate function