Added initial client socket code