setServer is now synchronized to prevent setting when variable is being used
Removed useless saving of variable