Added thrift to api