Implemented joint data transfer with Thrift.

Not tested yet.