Add thrift for communication to GUI