Add depreciation code