Using sockets for connection, with ByteStrings and better data types