Changed requests to use promises.