The UI passes the callback on invoke.