Renamed local lambdas to blocks.