Wrote ServerConnection for the client. Seems to be working.