Changed connection protocol and added a log statement to addClient.