Use blocks for key metrics calculation