More work on socket communication