Added interfaces to communicate with the ui side