Convertible Debt and Convertible Preferred Stock- Total interest expense recognized related to the Convertible Notes (Details 2) - Convertible note $ in Thousands |
12 Months Ended |
|---|---|
|
Dec. 31, 2016
USD ($)
| |
| Debt Instrument [Line Items] | |
| Contractual interest expense | $ 459 |
| Amortization of debt issuance costs | 437 |
| Amortization of debt discount | 1,425 |
| Total interest expense on Notes | $ 2,321 |