Add sending and receiving commands with server.