Summary of Significant Accounting Policies | SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES The following accounting policies should be read in conjunction with a summary of the significant accounting policies the Company has disclosed in its Annual Report on Form 10-K for the year ended December 31, 2018 . Restricted Cash The Company segregates certain cash balances as restricted cash that represent those funds required to be set aside by a contractual agreement. The Company classifies restricted cash between current and non-current assets based on the length of time of the restricted use. As of September 30, 2019 and 2018 , current restricted cash was $3,000 , representing pledges for outstanding letters of credit issued to support our operations. See the table below for reconciliation of "Cash, Cash Equivalents and Restricted Cash" in regards to the Condensed Consolidated Statements of Cash Flows: September 30, 2019 September 30, 2018 Cash and cash equivalents $ 64,093 $ 156,632 Restricted cash 3,000 3,000 Total cash, cash equivalents and restricted cash in the Condensed Statements of Cash Flows $ 67,093 $ 159,632 Marketable Securities The Company’s marketable securities were classified as available-for-sale and were reported at fair value, with unrealized gains and losses, net of tax, recorded in accumulated other comprehensive income (loss). Realized gains or losses and declines in value judged to be other-than-temporary, if any, on available-for-sale securities are reported in other income, net. The Company evaluates such investments periodically for possible other-than-temporary impairment. A decline of fair value below amortized costs of debt securities is considered an other-than-temporary impairment if the Company has the intent to sell the security or if it is more likely than not that the Company will be required to sell the security before recovery of the entire amortized cost basis. In those instances, an impairment charge equal to the difference between the fair value and the amortized cost basis is recognized in earnings. Regardless of the Company’s intent or requirement to sell a debt security, an impairment is considered other-than-temporary if the Company does not expect to recover the entire amortized cost basis; in those instances, a credit loss equal to the difference between the present value of the cash flows expected to be collected based on credit risk and the amortized cost basis of the debt security is recognized in earnings. There were no marketable securities as of September 30, 2019 as the balance was utilized to settle the 2019 Senior Convertible Notes at maturity on June 15, 2019. Refer to "Note 7 - Debt" for further detail. Renewable Identification Numbers ("RINs") When the Company produces and sells a gallon of biomass-based diesel, 1.5 to 1.7 RINs per gallon are generated. RINs are used to track compliance with the Renewable Fuel Standard ("RFS2"). RFS2 allows the Company to attach between zero and 2.5 RINs to any gallon of biomass-based diesel. As a result, a portion of the selling price for a gallon of biomass-based diesel is generally attributable to RFS2 compliance. However, RINs that the Company generates are a form of government incentive and not a result of the physical attributes of the biomass-based diesel production. Therefore, no cost is allocated to the RIN when it is generated, regardless of whether the RIN is transferred with the biomass-based diesel produced or held by the Company pending attachment to other biomass-based diesel production sales. In addition, the Company also obtains RINs from third parties who have separated the RINs from gallons of biomass-based diesel. From time to time, the Company holds varying amounts of these separated RINs for resale. RINs obtained from third parties are initially recorded at their cost and are subsequently revalued at the lower of cost or net realizable value as of the last day of each accounting period. The resulting adjustments are reflected in costs of goods sold for the period. The value of these RINs is reflected in “Prepaid expenses and other assets” on the Condensed Consolidated Balance Sheets. The cost of goods sold related to the sale of these RINs is determined using the average cost method, while market prices are determined by RIN values, as reported by the Oil Price Information Service ("OPIS"). Low Carbon Fuel Standard The Company generates Low Carbon Fuel Standard ("LCFS") credits for its low carbon fuels or blendstocks when its qualified low carbon fuels are transported into an LCFS market. LCFS credits are used to track compliance with the LCFS. As a result, a portion of the selling price for a gallon of biomass-based diesel sold into an LCFS market is also attributable to LCFS compliance. However, LCFS credits that the Company generates are a form of government incentive and not a result of the physical attributes of the biomass-based diesel production. Therefore, no cost is allocated to the LCFS credit when it is generated, regardless of whether the LCFS credit is transferred with the biomass-based diesel produced or held by the Company. In addition, the Company also obtains LCFS credits from third-party trading activities. From time to time, the Company holds varying amounts of these third-party LCFS credits for resale. LCFS credits obtained from third parties are initially recorded at their cost and are subsequently revalued at the lower of cost or net realizable value as of the last day of each accounting period, and the resulting adjustments are reflected in costs of goods sold for the period. The value of LCFS credits obtained from third parties is reflected in “Prepaid expenses and other assets” on the Condensed Consolidated Balance Sheet. The cost of goods sold related to the sale of these LCFS credits is determined using the average cost method, while market prices are determined by LCFS values, as reported by the OPIS. At September 30, 2019 and December 31, 2018 , the Company held no LCFS credits purchased from third parties. The Company records assets acquired and liabilities assumed through the exchange of non-monetary assets based on the fair value of the assets and liabilities acquired or the fair value of the consideration exchanged, whichever is more readily determinable. Goodwill Goodwill is tested for impairment annually as of July 31 or when impairment indicators exist. Goodwill is allocated and tested for impairment by reporting segments. At September 30, 2019 and 2018 , the Company had $16,080 of goodwill in the Services segment. As a result of the annual impairment test performed as of July 31, 2019, the Company determined that the fair value of the Services segment exceeded its carrying value by approximately 5% . No impairment of goodwill was recorded during the quarter ended September 30, 2019 or 2018 . Impairment of Long-lived Assets The Company tests its long-lived assets for recoverability when events or circumstances indicate that its carrying amount may not be recoverable. Significant assumptions used in the undiscounted cash flow analysis, when it is required, include the projected demand for biomass-based diesel based on annual renewable fuel volume obligations under the Renewable Fuel Standards (RFS2), the Company's capacity to meet that demand, the market price of biomass-based diesel and the cost of feedstock used in the manufacturing process. During the third quarter of 2019, the Company recorded impairment charges of $11,145 related to its New Boston facility's property, plant and equipment assets resulting from the closing of the plant and the unlikelihood that the plant will be reopened in the near future due to the deteriorating economic conditions uniquely facing the plant. The impairment charge reflected the difference between the carrying amount and the estimated fair value. The fair value was determined based on a cost approach. The inputs include replacement cost estimates adjusted for physical deterioration and economic obsolescence. This method of assigning fair value to each asset type and aggregating those values represents a Level 3 asset measurement in determining the fair value on a nonrecurring basis subsequent to its original recognition. Convertible Debt In June 2016, the Company issued $152,000 aggregate principal amount of 4% convertible senior notes due in 2036 (the "2036 Convertible Senior Notes"). See "Note 7 - Debt" for a further description of the 2036 Convertible Senior Notes. During the three and nine months ended September 30, 2019 the Company made no repurchases of the 2036 Convertible Senior Notes. For the three and nine months ended September 30, 2018 , the Company used $17,583 to repurchase $10,000 principal amount and $59,346 to repurchase $34,500 principal amount of the 2036 Convertible Senior Notes, respectively. See "Security Repurchase Programs" below. In June 2014, the Company issued $143,800 aggregate principal amount of 2.75% convertible senior notes due in 2019 (the "2019 Convertible Senior Notes"). During the three months ended September 30, 2018, the Company made no repurchases of the 2019 Convertible Senior Notes. During the nine months ended September 30, 2018, the Company used $6,689 under the 2017 Program (defined below in "Security Repurchase Programs") to repurchase $6,311 principal amount of the 2019 Convertible Senior Notes. On June 15, 2019, the 2019 Convertible Senior Notes matured. The Company elected to settle the principal balance with cash and the excess conversion amount was satisfied by the Company issuing shares from treasury stock. 1,902,781 shares of treasury stock were issued at settlement. Capped Call Transaction In connection with the issuance of the 2019 Convertible Senior Notes, the Company entered into capped call transactions ("Capped Call"). The purchased capped call transactions were recorded as a reduction to common stock-additional paid-in-capital. Because this was considered to be an equity transaction and qualifies for the derivative scope exception, no future changes in the fair value of the capped call will be recorded by the Company. During 2016, in connection with the issuance of the 2036 Convertible Senior Notes, certain call options covered by the original capped call transaction were rebalanced and reset to cover 100% of the total number of shares of the Company's Common Stock underlying the remaining principal of the 2019 Convertible Senior Notes. As part of the settlement of the 2019 Convertible Senior Notes, the Company settled all related capped call options in June 2019 and received 625,558 shares of common stock. The impact of these transactions, net of tax, was reflected as an addition to Additional Paid-in Capital as presented in the Condensed Consolidated Statements of Stockholders' Equity. Security Repurchase Programs In December 2017, June 2018 and January 2019, the Company's Board of Directors approved a repurchase program, each of up to $75,000 of the Company's convertible notes and/or shares of common stock (the "2017 Program","2018 Program", and "2019 Program", respectively). Under these programs, the Company may repurchase convertible notes or shares from time to time in open market transactions, privately negotiated transactions or by other means. The timing and amount of repurchase transactions under each program are determined by the Company's management based on its evaluation of market conditions, share price, bond price, legal requirements and other factors. The Company made no repurchases of shares of common stock or convertible notes during the three or nine months ended September 30, 2019 . The table below sets out the information regarding the activities under the 2017 Program and 2018 Program during the three and nine months ended September 30, 2018 : Three months ended September 30, 2018 Nine months ended September 30, 2018 Number of shares/ Principal amount in 000's December 2017 Program June 2018 Program Both Programs Number of shares/Principal amount in 000's December 2017 Program June 2018 Program Both Programs Repurchases of shares of common stock — $ — $ — $ — 1,937,844 $ 25,048 $ — $ 25,048 2019 Senior Convertible Notes Repurchases $ — $ — $ — $ — $ 6,311 $ 6,689 $ — $ 6,689 2036 Senior Convertible Notes Repurchases $ 10,000 $ 1,500 $ 16,083 $ 17,583 $ 34,500 $ 43,263 $ 16,083 $ 59,346 Revenue Recognition The Company generally has a single performance obligation in its arrangements with customers. The Company believes for most of its contracts with customers, control is transferred at a point in time, typically upon delivery to the customers. When the Company performs shipping and handling activities after the transfer of control to the customers (e.g., when control transfers prior to delivery), they are considered as fulfillment activities, and accordingly, the costs are accrued for when the related revenue is recognized. Taxes collected from customers relating to product sales and remitted to governmental authorities are excluded from revenues. The Company generally expenses sales commissions when incurred because the amortization period would have been less than one year. The Company records these costs within selling, general and administrative expenses. The following is a description of principal activities from which we generate revenue. Revenues from contracts with customers are recognized when control of the promised goods or services are transferred to our customers, in an amount that reflects the consideration that we expect to receive in exchange for those goods or services. • sales of biodiesel and renewable diesel produced at our facilities and acquired from third parties, including RINs and LCFS credits; • resale of petroleum acquired from third parties, along with the sale of petroleum-based products further blended with biodiesel produced at our wholly owned facilities or acquired from third parties; • sales of raw materials, glycerin, and other co-products of the biomass-based diesel production process; • other revenue, including biomass-based diesel facility management and operational services; and • incentive payments from federal and state governments, including the BTC, and from the USDA Advanced Biofuel Program. Disaggregation of revenue: All revenue recognized in the income statement, except for Biomass-based diesel Government Incentives, is considered to be revenue from contracts with customers. The following table depicts the disaggregation of revenue according to product line and segment: Reportable Segments Three months ended September 30, 2019 Biomass-based Services Corporate Intersegment Consolidated Biomass-based diesel sales, net of BTC related amount due to customers of $0 $ 448,471 $ — $ — $ (11,361 ) $ 437,110 Petroleum diesel sales — — 54,201 — 54,201 Other biomass-based diesel revenue 65,603 — — — 65,603 Separated RIN sales 26,762 — — — 26,762 Other revenues — 28,042 — (27,858 ) 184 Total revenues from contracts with customers $ 540,836 $ 28,042 $ 54,201 $ (39,219 ) $ 583,860 Biomass-based diesel government incentives 512 — — — 512 Total revenues $ 541,348 $ 28,042 $ 54,201 $ (39,219 ) $ 584,372 Three months ended September 30, 2018 Biomass-based Diesel Services Corporate and other Intersegment Revenues Consolidated Total Biomass-based diesel sales, net of BTC related amount due to customers of $0 $ 472,881 $ — $ — $ (5,798 ) $ 467,083 Petroleum diesel sales — — 54,176 — 54,176 Other biomass-based diesel revenue 46,915 — — — 46,915 Separated RIN sales 26,867 — — — 26,867 Other revenues — 21,649 — (21,310 ) 339 Total revenues from contracts with customers $ 546,663 $ 21,649 $ 54,176 $ (27,108 ) $ 595,380 Biomass-based diesel government incentives 944 — — — 944 Total revenues $ 547,607 $ 21,649 $ 54,176 $ (27,108 ) $ 596,324 Reportable Segments Nine months ended September 30, 2019 Biomass-based Services Corporate Intersegment Consolidated Biomass-based diesel sales, net of BTC related amount due to customers of $0 $ 1,195,171 $ — $ — $ (14,136 ) $ 1,181,035 Petroleum diesel sales — — 216,288 — 216,288 Other biomass-based diesel revenue 154,816 — — — 154,816 Separated RIN sales 68,821 — — — 68,821 Other revenues — 71,764 — (71,010 ) 754 Total revenues from contracts with customers $ 1,418,808 $ 71,764 $ 216,288 $ (85,146 ) $ 1,621,714 Biomass-based diesel government incentives 1,510 — — — 1,510 Total revenues $ 1,420,318 $ 71,764 $ 216,288 $ (85,146 ) $ 1,623,224 Nine months ended September 30, 2018 Biomass-based Diesel Services Corporate and other Intersegment Revenues Consolidated Total Biomass-based diesel sales, net of BTC related amount due to customers of $144,944 $ 1,121,250 $ — $ — $ (28,564 ) $ 1,092,686 Petroleum diesel sales — — 172,210 — 172,210 Other biomass-based diesel revenue 129,148 — — — 129,148 Separated RIN sales 100,232 — — — 100,232 Other revenues — 74,387 — (72,581 ) 1,806 Total revenues from contracts with customers $ 1,350,630 $ 74,387 $ 172,210 $ (101,145 ) $ 1,496,082 Biomass-based diesel government incentives 367,144 — — — 367,144 Total revenues $ 1,717,774 $ 74,387 $ 172,210 $ (101,145 ) $ 1,863,226 Contract balances: The following table provides information about receivables and contract liabilities from contracts with customers: September 30, 2019 December 31, 2018 Accounts receivable $ 81,015 $ 74,551 Short-term contract liabilities (deferred revenue) $ (954 ) $ (300 ) The Company receives payments from customers based upon contractual billing schedules; accounts receivable are recorded when the right to consideration becomes unconditional. Contract liabilities include payments received in advance of performance under the contract, and are realized with the associated revenue recognized under the contract. Significant changes to the contract liabilities during the three and nine months ended September 30, 2019 and 2018 are as follows: July 1, 2019 Cash receipts Less: Impact on Other September 30, 2019 Deferred revenue $ 4,536 $ 6,984 $ 10,566 $ — $ 954 July 1, 2018 Cash receipts Less: Impact on Other September 30, 2018 Deferred revenue $ 161 $ 5,772 $ 4,461 $ — $ 1,472 Payables to customers related to BTC 40,935 (31,781 ) — — 9,154 $ 41,096 $ (26,009 ) $ 4,461 $ — $ 10,626 January 1, 2019 Cash receipts Less: Impact on Other September 30, 2019 Deferred revenue $ 300 $ 47,331 $ 46,677 $ — $ 954 January 1, 2018 Cash receipts Less: Impact on Other September 30, 2018 Deferred revenue $ 2,218 $ 19,575 $ 20,318 $ (3 ) $ 1,472 Payables to customers related to BTC — (141,622 ) (144,944 ) 5,832 9,154 $ 2,218 $ (122,047 ) $ (124,626 ) $ 5,829 $ 10,626 Discontinued Operations Income (loss) from discontinued operations mainly relates to the research and development activities and the sale of REG Life Sciences, the Company's industrial biotechnology business, which had been classified as assets held for sale following the Company's decision to pursue a sale of this business in the fourth quarter of 2018. In May 2019, the Company entered into a sale and purchase agreement to sell REG Life Sciences core assets and business. During the three months ended September 30, 2019, the Company continued to incur costs that primarily relate to certain pre-existing contractual agreements and legal and professional fees related to the disposition and wind-down of operations. The Company does not expect future such costs to be material. See "Note 4 - Discontinued Operations" for further details. New Accounting Standards On February 25, 2016, the FASB issued Accounting Standard Update ("ASU") 2016-02, Topic 842, Leases, which introduces a lessee model that brings most leases on the balance sheet. The new standard also aligns many of the underlying principles of the new lessor model with those in ASC 606, the FASB’s new revenue recognition standard (e.g., those related to evaluating when profit can be recognized). Furthermore, the ASU addresses other concerns related to the current leases model. On July 19, 2018, the FASB issued ASU 2018-10, Codification Improvements to Topic 842, Leases, which addresses certain aspects of the new leases standard, including the rate implicit in the lease, impairment of the net investment in the lease, lessee reassessment of lease classification, lessor reassessment of lease term and purchase options, variable payments that depend on an index or rate and certain transition adjustments, among other things. On July, 31, 2018, the FASB issued ASU 2018-11, Codification Improvements to Topic 842, Leases, which provides entities with an additional (and optional) transition method to adopt the new leases standard. Under this new transition method, an entity initially applies the new leases standard at the adoption date and recognizes a cumulative effect adjustment to the opening balance of retained earnings in the period of adoption. The Company adopted all of the ASU's related to ASC 842 effective January 1, 2019. The Company applied a modified retrospective transition approach. The Company did not elect the practical expedient (1) to reassess the lease classification for any expired or existing leases; (2) to reassess whether any expired or existing contracts are or contain leases and (3) to reassess initial direct costs. The Company elected the hindsight practical expedient to determine the reasonably certain lease term for existing leases and to assess the impairment of its right-of-use assets. While lease classification remained unchanged, hindsight resulted in generally shorter accounting lease terms and useful lives of the corresponding right of use assets. The hindsight analysis also resulted in an approximate negative impact on beginning retained earnings of $7,000 , related to the impairment of a right-of-use asset at the Company's New Orleans facility. The Company elected the transitional practical expedient for existing or expired land easements, allowing the Company to elect not to assess whether those land easements are, or contain, leases in accordance with ASC 842. The Company also elected the practical expedient to adjust the carrying amount of the right-of-use assets for the unfavorable lease liability previously recognized on the balance sheet. Additionally, the Company made an accounting policy election that keeps leases with an initial term of 12 months or less off of the balance sheet and resulted in recognizing those lease payments in the Condensed Consolidated Statements of Operations on a straight-line basis over the lease term. Refer to "Note 8 - Leases" for further detail. On August 28, 2017, the FASB issued ASU 2017-12, which amends the hedge accounting recognition and presentation requirements in ASC 815 to (1) improve the transparency and understandability of information conveyed to financial statement users about an entity’s risk management activities by better aligning the entity’s financial reporting for hedging relationships with those risk management activities and (2) reduce the complexity of and simplify the application of hedge accounting by preparers. For public business entities, the amendments in ASU 2017-12 are effective for fiscal years beginning after December 15, 2018, and interim periods within those fiscal years. T he Company believes that the ASU 2017-12 will allow more of its derivative contracts to qualify for hedge accounting elections. The Company adopted ASU 2017-12 effective January 1, 2019, and changes in fair value of derivatives continue to be recognized in current period earnings for the three and nine months ended September 30, 2019 . On November 7, 2018, the FASB issued ASU 2018-16, which permits entities to use the Overnight Index Swap ("OIS") Rate based on Secured Overnight Financing Rate ("SOFR") as an eligible benchmark interest rate during the early stages of the transition from LIBOR to SOFR. For public business entities, the amendments in ASU 2018-16 are effective for fiscal years beginning after December 15, 2018, and interim periods within those fiscal years. The Company's adoption of ASU 2018-16 did not have a material impact on its consolidated financial statements. On June 16, 2016, the FASB issued ASU 2016-13, which amends the Board's guidance on the impairment of financial instruments. The ASU 2016-13 adds to U.S. GAAP an impairment model (known as the current expected credit loss (CECL) model) that is based on expected losses rather than incurred losses. Under this new guidance, an entity recognizes as an allowance its estimate of expected credit losses. For public companies, the ASU 2016-13 is effective for fiscal years beginning after December 15, 2019, including interim periods within those fiscal years. On May 15, 2019. the FASB issued ASU 2019-05, which allows companies to elect a fair value option under Subtopic 825-10 as targeted transition relief for comparability purposes of some financial instruments. The transition relief is effective at the same time as ASU 2016-13. The Company is evaluating the impact of the guidance, but does not expect it to have any material impact on its consolidated financial statements. |