Leases | Note 3. Leases We have operating leases for office space, warehouse space, computer and office equipment and 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 1 June 30, December 31, Leases Classification 2021 2020 Assets (in thousands) Operating leases Operating lease assets $ 7,626 $ 4,542 Finance lease Finance lease assets * 19,889 20,544 Total leased assets $ 27,515 $ 25,086 Liabilities Current Operating Other current liabilities $ 3,215 $ 2,573 Finance Current portion of finance lease obligation 864 756 Noncurrent Operating Other long-term liabilities 4,398 1,949 Finance Finance lease obligation 46,923 47,393 Total lease liabilities $ 55,400 $ 52,671 * Finance lease assets are recorded net of accumulated depreciation of $48.9 million and include $0.7 million of prepaid financing costs as of June 30, 2021. Finance lease assets are recorded net of accumulated depreciation of $48.4 million and include $0.7 Three months ended Six months ended June 30, June 30, Lease cost Classification 2021 2020 2021 2020 Operating lease cost (in thousands) Service Cost of revenue $ 644 $ 624 $ 1,283 $ 1,174 Research and development Operating expenses 122 128 252 209 Sales and marketing* Operating expenses 376 346 755 678 General and administrative* Operating expenses 201 220 461 435 Total operating lease cost $ 1,343 $ 1,318 $ 2,751 $ 2,496 Finance lease cost Depreciation of leased assets Cost of revenue, R&D, Sales and marketing and G&A $ 328 $ 328 $ 656 $ 681 Interest on lease liabilities Interest expense 1,274 1,299 2,553 2,602 Total finance lease cost $ 1,602 $ 1,627 $ 3,209 $ 3,283 Total lease cost $ 2,945 $ 2,945 $ 5,960 $ 5,779 * Sales and marketing and general and administrative expense also includes short-term lease and variable lease costs of approximately $0.4 million and $0.9 million for the three and six months ended June 30, 2021, respectively, and includes short-term and variable lease costs of approximately $0.3 million and $0.5 million for the three and six months ended June 30, 2020, respectively. 1 Finance Operating Total Maturity of Lease Liabilities Leases Leases Leases (in thousands) 2021 $ 2,929 $ 1,827 $ 4,756 2022 5,980 3,053 9,033 2023 6,114 1,544 7,658 2024 6,252 794 7,046 2025 5,930 712 6,642 Thereafter 73,723 545 74,268 Total lease payments $ 100,928 $ 8,475 $ 109,403 Less interest portion* (53,141) (862) (54,003) Finance lease and operating lease obligations $ 47,787 $ 7,613 $ 55,400 * 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 2021 Weighted-average remaining lease term (years): Operating leases 3.0 Finance leases 15.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 2021 2020 (in thousands) Operating cash outflows from operating leases $ 2,751 $ 2,496 Operating cash outflows from finance leases 2,556 2,746 Financing cash outflows from finance leases 362 108 Operating lease assets obtained in exchange for operating lease liabilities 4,192 1,038 Finance lease assets obtained in exchange for new finance lease liabilities $ — $ — |