Added a preferred server logic that tries to connect to a definied server first before falling back to the old random bahavior