Adding thrift service for master/slave IPC with main process.