Leases | Note 3. Leases We have operating leases for office space, warehouse space, a manufacturing plant, computer and office equipment as well as vehicles used in our business operations. We have a finance lease as a result of the 2015 sale-leaseback of our corporate headquarters in Beverly, Massachusetts. All new agreements are reviewed to determine if they contain a lease component. A lease is a contract, or part of a contract, that conveys the right to control the use of identified property, plant or equipment over a period of time in exchange for consideration. We recognize the lease obligation on a discounted basis using the explicit or implicit discount rate stated within the agreement. We recognize a corresponding right-of-use asset, which is initially determined based upon the net present value of the associated liability and is adjusted for deferred costs and possible impairment, if any. For those lease agreements that do not indicate the applicable discount rate, we use our incremental borrowing rate. We have made the following policy elections: (i) operating leases with an initial term of 12 months or less are not recorded on the consolidated balance sheet; (ii) we recognize lease expense for operating leases on a straight-line basis over the lease term; and (iii) we account for lease components and non-lease components that are fixed payments as one component. Some of our operating leases include one or more options to renew, with renewal terms that can extend the respective lease term one June 30, December 31, Leases Classification 2022 2021 Assets (in thousands) Operating leases Operating lease assets $ 10,879 $ 9,242 Finance lease Finance lease assets * 18,590 19,238 Total leased assets $ 29,469 $ 28,480 Liabilities Current Operating Other current liabilities $ 4,983 $ 4,716 Finance Current portion of finance lease obligation 1,101 979 Noncurrent Operating Other long-term liabilities 5,800 4,357 Finance Finance lease obligation 45,822 46,415 Total lease liabilities $ 57,706 $ 56,467 *Finance lease assets are recorded net of accumulated depreciation of $49.2 million and includes $0.6 million of prepaid financing costs as of June 30, 2022. Finance lease assets are recorded net of accumulated depreciation of $48.6 million and includes $0.7 million of prepaid financing costs as of December 31, 2021. Three months ended Six months ended June 30, June 30, Lease cost Classification 2022 2021 2022 2021 Operating lease cost (in thousands) Product / Services Cost of revenue $ 1,306 $ 644 $ 2,516 $ 1,283 Research and development Operating expenses 76 122 132 252 Sales and marketing* Operating expenses 368 376 787 755 General and administrative* Operating expenses 308 201 520 461 Total operating lease cost $ 2,058 $ 1,343 $ 3,955 $ 2,751 Finance lease cost Depreciation of leased assets Cost of revenue, R&D, Sales and marketing and G&A $ 325 $ 328 $ 648 $ 656 Interest on lease liabilities Interest expense 1,274 1,274 2,532 2,553 Total finance lease cost $ 1,599 $ 1,602 $ 3,180 $ 3,209 Total lease cost $ 3,657 $ 2,945 $ 7,135 $ 5,960 * Sales and marketing and general and administrative expense also includes short-term lease and variable lease costs of approximately $0.6 million and $1.0 million for the three and six months ended June 30, 2022, respectively, and includes short-term and variable lease costs of approximately $0.4 million and $0.9 million for the three and six months ended June 30, 2021, respectively. one Finance Operating Total Maturity of Lease Liabilities Leases Leases Leases (in thousands) 2022 $ 2,995 $ 2,793 $ 5,788 2023 6,114 3,837 9,951 2024 6,252 1,709 7,961 2025 5,930 1,398 7,328 2026 6,008 1,147 7,155 Thereafter 67,715 487 68,202 Total lease payments $ 95,014 $ 11,371 $ 106,385 Less interest portion* (48,091) (588) (48,679) Finance lease and operating lease obligations $ 46,923 $ 10,783 $ 57,706 * Finance lease interest calculated using the implied interest rate; operating lease interest calculated using estimated corporate borrowing rate. June 30, Lease term and discount rate 2022 Weighted-average remaining lease term (years): Operating leases 3.1 Finance leases 14.6 Weighted-average discount rate: Operating leases 4.5% Finance leases 10.5% Six months ended June 30, Cash paid for amounts included in the measurement of lease liabilities 2022 2021 (in thousands) Operating cash outflows from operating leases $ 3,955 $ 2,751 Operating cash outflows from finance leases 2,509 2,556 Financing cash outflows from finance leases 475 362 Operating lease assets obtained in exchange for operating lease liabilities 4,714 4,192 Finance lease assets obtained in exchange for new finance lease liabilities — — |