Adapt app to the new API.