Added option to make resultFormatter async.