Refactored tool to use built in metrics instead of counting. Added tool for plotting resources.