Connecting Jinfeng's QL code to Thrift API.