Added methods to calculate materials needed.