Code refactoring

Server address is stored in a global variable