Added some logs.
Implemented sendData().