Daemon code + thrift