Changed app to use the new API.