Set scope of function called in waterfall method to that of waterfall