Use the new API in the gui