Fixed CorpProduction volume calculation and code cleanup.