Add code for GUI and bridge