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, 2017 . Marketable Securities The Company’s marketable securities are classified as available-for-sale and are 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. The Company has no current requirement or intent to sell a material portion of marketable securities as of September 30, 2018. The Company expects to recover up to (or beyond) the initial cost of investment for securities held. In computing realized gains and losses on available-for-sale securities, the Company determines cost based on amounts paid, including direct costs such as commissions to acquire the security, using the specific identification method. Accounts Receivable Accounts receivable are carried at invoiced amount less allowance for doubtful accounts. Management estimates the allowance for doubtful accounts based on existing economic conditions, the financial conditions of customers, and the amount and age of past due accounts. Receivables are considered past due if full payment is not received by the contractual due date. Past due accounts are generally written off against the allowance for doubtful accounts only after reasonable collection attempts have been exhausted. For the nine months ended September 30, 2018 , the Company has recognized receivables of $365,155 from the federal government and of $16,688 from customers related to the 2017 biodiesel mixture excise tax credit. Through September 30, 2018 , the Company has received approximately $364,989 of the $365,155 receivable from the federal government and $16,480 from customers related to the 2017 biodiesel mixture excise tax credit. 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, 2018 and December 31, 2017 , 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. Property, Plant and Equipment Property, plant and equipment is recorded at cost less accumulated depreciation. Maintenance and repairs are expensed as incurred. Depreciation expense is computed on a straight-line method based upon estimated useful lives of the assets. In June 2017, the Company experienced a fire at its Madison facility, resulting in the shutdown of the facility. In 2017, the Company impaired fixed assets with a total net book value of approximately $2,671 as a result of the fire in June 2017. To date, the Company received payments in the amounts of $12,454 and $9,484 to cover costs incurred for property losses and business interruption, respectively. 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"). The embedded conversion option was initially accounted for as an embedded derivative liability as the Company could not elect to issue shares of common stock upon conversion of the 2036 Convertible Senior Notes to the extent such election would result in the issuance of more than 19.99% of the common stock outstanding immediately before the issuance of the 2036 Convertible Senior Notes unless the Company received stockholder approval for such issuance. On December 8, 2017, at the special meeting of stockholders, the Company obtained approval from its stockholders to remove the common stock issuance restrictions in connection with conversions of the 2036 Convertible Senior Notes. Accordingly, the embedded conversion option, valued at $45,933 and net of tax of $18,025 , was reclassified into Additional Paid-in Capital at December 8, 2017. See "Note 8 - Debt" for a further description of the 2036 Convertible Senior Notes. During the three and nine months ended September 30, 2018 , the Company used $17,583 and $59,346 to repurchase $10,000 and $34,500 principal amounts of the 2036 Convertible Senior Notes, respectively. See "Security Repurchase Programs" below. Capped Call Transaction In connection with the issuance of the 2019 Convertible Senior Notes, the Company entered into capped call transactions. 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. The impact of these transactions, net of tax, was reflected as an addition/reduction to Additional Paid-in Capital as presented in the Consolidated Statements of Stockholders' Equity. Security Repurchase Programs In December 2017, the Company's board of directors approved a repurchase program of up to $75,000 of the Company's convertible notes and/or shares of common stock (the "2017 Program"). In June 2018, the Company's board of directors approved another repurchase program of up to $75,000 of the Company's convertible notes and/or shares of common stock (the "2018 Program"). 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 table below sets out the information regarding the activities under the 2017 Program and the 2018 Program during 2018: Three months ended September 30, 2018 Nine months ended September 30, 3018 Number of shares/Principal amount in $'000 December 2017 Program June 2018 Program Both Programs Number of shares/Principal amount in $'000 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 Research and Development Research and development ("R&D") costs are charged to expense as incurred. In process research and development ("IPR&D") assets acquired in connection with acquisitions are recorded on the Condensed Consolidated Balance Sheets as intangible assets. Revenue Recognition In the first quarter of 2018, the Company adopted Accounting Standards Update ("ASU") 2014-09, Revenue from Contracts with Customers (Topic 606). Under the ASU, revenue is recognized when a customer obtains control of promised goods or services in an amount that reflects the consideration the entity expects to receive in exchange for those goods or services. In addition, the standard requires disclosure of the nature, amount, timing, and uncertainty of revenue and cash flows arising from contracts with customers. The Company applied the five-step method outlined in the ASU to all contracts with customers and elected the modified retrospective implementation method. The Company has generally 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 implementation of the new standard did not have any material impact on the measurement or recognition of revenue of prior periods, however additional disclosures have been added in accordance with the ASU. 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, including RINs and LCFS credits; • resale of finished biomass-based diesel, RINs and LCFS credits acquired from third parties, and raw material feedstocks acquired from others; • revenues from our sale of petroleum-based heating oil and ultra-low sulfur diesel, or ULSD, acquired from third parties, along with the sale of these petroleum-based products further blended with biodiesel produced at our wholly owned facilities; • sales of glycerin, other co-products of the biomass-based diesel production process; • incentive payments from federal and state governments, including the BTC, and from the USDA Advanced Biofuel Program; and • other revenue: • collaborative research and development and other service revenue for research and development activities to continue to build out the technology platform; and • sales of renewable chemical products. 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 Segment Three months ended September 30, 2018 Biomass-based Services Renewable Corporate Intersegment Consolidated Biomass-based diesel sales, net of BTC related amount due to customers of $0 $ 635,409 $ — $ — $ — $ (158,644 ) $ 476,765 Petroleum diesel sales — — — 44,494 — 44,494 Other biomass-based diesel revenue 46,915 — — — — 46,915 Separated RIN sales 26,867 — — — — 26,867 Other revenues — 21,649 1,633 — (21,514 ) 1,768 Total revenues from contracts with customers $ 709,191 $ 21,649 $ 1,633 $ 44,494 $ (180,158 ) $ 596,809 Biomass-based diesel government incentives 944 — — — — 944 Total revenues $ 710,135 $ 21,649 $ 1,633 $ 44,494 $ (180,158 ) $ 597,753 Reportable Segment Nine months ended September 30, 2018 Biomass-based Services Renewable Corporate Intersegment Consolidated Biomass-based diesel sales, net of BTC related amount due to customers of $144,944 $ 1,283,778 $ — $ — $ 9,682 $ (200,774 ) $ 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 4,556 — (73,208 ) 5,735 Total revenues from contracts with customers $ 1,513,158 $ 74,387 $ 4,556 $ 181,892 $ (273,982 ) $ 1,500,011 Biomass-based diesel government incentives 367,144 — — — — 367,144 Total revenues $ 1,880,302 $ 74,387 $ 4,556 $ 181,892 $ (273,982 ) $ 1,867,155 Contract balances: The following table provides information about receivables and contract liabilities from contracts with customers: September 30, Accounts receivable $ 92,700 Short-term contract liabilities (deferred revenue) $ (1,472 ) Short-term contract liabilities (accounts payable) $ (9,154 ) 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. While in general the Company has not historically offered sales incentives to customers, the uncertainty around the reinstatement of the federal biodiesel tax credit led to the Company and other market participants acting as if the federal biodiesel tax credit would be reinstated throughout the year and entering into agreements with both customers and vendors to capture the credit when or if reinstated. The impacts of the agreements with customers are recorded as contract liabilities in accounts payable and as adjustments to Biomass-based diesel sales, whereas agreements with vendors are recorded net as adjustments to Biomass-based diesel costs of goods sold on the Condensed Consolidated Statements of Operations. Significant changes to the contract liabilities during the three and nine months ended September 30, 2018 are as follows: 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, 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 New Accounting Standards On February 25, 2016, the FASB issued ASU 2016-02, 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. The ASU is effective for annual periods beginning after December 15, 2018 and interim periods therein. 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. The amendments have the same effective date and transition requirements as ASU 2016-02. The Company is evaluating the impact of this guidance on its consolidated financial statements. 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 amendments have the same effective date and transition requirements as ASU 2016-02. The Company plans to apply a modified retrospective transition approach to each applicable lease that existed at January 1, 2017 and to leases entered thereafter. In addition, the Company will take advantage of the transition package of practical expedients permitted within the new leases standard, which among other things, allows the Company to carry forward the historical lease classification. The Company also plans to elect the hindsight practical expedient to determine the reasonably certain lease term for existing leases. While lease classification will remain unchanged, hindsight will result in generally shorter accounting lease terms and useful lives of the corresponding leasehold improvements. Additionally, the Company will make an accounting policy election that will keep leases with an initial term of 12 months or less off of the balance sheet and will result in recognizing those lease payments in the Condensed Consolidated Statements of Operations on a straight-line basis over the lease term. 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. T he Company is still evaluating the impact on its consolidated financial statements. On December 22, 2017, President Donald Trump signed into law “H.R. 1”, formerly known as the “Tax Cuts and Jobs Act” (the “Tax Legislation”). The Tax Legislation, which became effective on January 1, 2018, significantly revises the U.S. tax code by, among other things, lowering the corporate income tax rate from 35% to 21%, limiting deductibility of interest expense, implementing a hybrid-territorial tax system imposing a repatriation tax on deemed repatriated earnings of foreign subsidiaries (the “transition tax”), and enacted additional international tax provisions, including a minimum tax on global intangible low-taxed income (“GILTI”) and a new base erosion anti-abuse tax (“BEAT”). The Company recorded a provisional non-cash tax benefit of $13,712 in the fourth quarter of 2017. The Company finalized its accounting for the transition tax during the quarter ended March 31, 2018, and has incorporated the impact of the other Tax Legislation provisions effective for 2018 and beyond within the financial statements. On February 28, 2018, the FASB issued ASU 2018-03, which makes technical corrections to certain aspects of ASU 2016-16 (on recognition of financial assets and financial liabilities), including equity securities without a readily determinable fair value (discontinuation and adjustments); forward contracts and purchased options; presentation requirements for certain fair value option liabilities; fair value option liabilities denominated in a foreign currency and transition guidance for equity securities without a readily determinable fair value. For public business entities, the amendments in ASU 2018-03 are effective for fiscal years beginning after December 15, 2017, and interim periods within those fiscal years beginning after June 15, 2018. T he Company has evaluated and determined that this guidance does not significantly impact on its consolidated financial statements. On August 28, 2018, the FASB issued ASU 2018-13, which changes the fair value measurement disclosure requirements of ASC 820. ASU 2018-13 eliminates or modifies certain disclosure requirements of ASC 820 and requires new disclosures relating to changes in unrealized gains or losses included in other comprehensive income for recurring Level 3 fair value measurements held at the end of the applicable reporting period. ASU 2018-13 also explicitly requires entities to disclose the range and weighted average used to develop significant unobservable inputs for Level 3 fair value measurements. ASU 2018-13 is effective for all entities for fiscal years beginning after December 15, 2019, including interim periods therein. The |