Added support for react promises.