Added export of promise library for convenience.