Implemented server selection.