Updated sockets to work with logger