Added options for configuring behavior of promises.