Fixing getting usage for each resource.