Adapt application to fit new API.