Added a lot of connection to server stuff.