Added promisify method helper.