Added debug mode and changed metrics to totals
Overloaded methods with debug flag