@Override
	public void connectToHost(final String hostname, final int port) {
		if(client != null) {
			// This will have to do until I find a more final solution...
			client.shutdown();
			client = new Client();
		}
		new Thread(new Runnable() {
			public void run() {
				try {
					gui.getLoginWindow().setServerStatusInfo(ServerStatus.CONNECTING);
					client.connect(hostname, port);
				} catch (ServerOfflineException soeMsg) {
					soeMsg.printStackTrace();
				} catch (ConnectTimeoutException cteMsg) {
					cteMsg.printStackTrace();
				}
				if(client.isConnected()) {
					gui.getLoginWindow().setServerStatusInfo(ServerStatus.ONLINE);
				} else {
					gui.getLoginWindow().setServerStatusInfo(ServerStatus.OFFLINE);
				}
			}
		}).start();
	}