Promisifying output