Added robot control and simplified sockets