Changed to connect to server