Added interface for connecting to server