Add thrift interface