Switch to promises.