Consolidated Statements of Operations (Unaudited) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Sep. 30, 2016
Sep. 30, 2015
Income Statement [Abstract]        
Revenue $ 94,871 $ 71,393 $ 263,414 $ 180,092
Cost of revenue 39,230 39,823 113,265 88,814
Gross profit 55,641 31,570 150,149 91,278
Operating expenses:        
Research and development 13,734 10,035 39,676 30,311
Sales and marketing 22,147 21,307 69,119 55,025
General and administrative 17,342 15,023 47,923 42,062
Total operating expenses 53,223 46,365 156,718 127,398
Operating income (loss) 2,418 (14,795) (6,569) (36,120)
Interest expense 3,029 3,167 9,252 9,567
Other income, net 211 21 510 76
Loss on extinguishment of long-term debt 2,551 0 2,551 0
Interest expense and other income, net (5,369) (3,146) (11,293) (9,491)
Loss from continuing operations before income taxes (2,951) (17,941) (17,862) (45,611)
Income tax expense 66 44 195 83
Net loss from continuing operations (3,017) (17,985) (18,057) (45,694)
Loss from discontinued operations, net of tax ($0 and $18 for the three months ended September 30, 2016 and 2015, respectively and $408 and $68 for the nine months ended September 30, 2016 and 2015, respectively) (64) (942) (1,703) (499)
Net loss $ (3,081) $ (18,927) $ (19,760) $ (46,193)
Net loss per share basic and diluted:        
Net loss from continuing operations per share basic and diluted (in dollars per share) $ (0.05) $ (0.32) $ (0.32) $ (0.81)
Net loss from discontinued operations per share basic and diluted (in dollars per share) $ 0.00 $ (0.02) $ (0.03) $ (0.01)
Weighted-average number of shares used in calculating net loss per share (in shares) 57,341,063 56,898,281 57,189,423 56,735,944