Adding api's for gui