Adapt to changed Mojo api.