Reworked the client side to connect to the server side.