CONSOLIDATED STATEMENTS OF OPERATIONS - USD ($)
shares in Thousands, $ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
CONSOLIDATED STATEMENTS OF OPERATIONS      
Revenue $ 208,802 $ 163,179 $ 148,800
Cost of revenue 105,123 81,645 72,443
Gross margin 103,679 81,534 76,357
Operating expenses:      
Research and development 35,985 32,385 27,365
Sales and marketing 42,198 32,594 25,887
General and administrative 20,309 17,355 14,195
Litigation settlement 475 21 47
Total operating expenses 98,967 82,355 67,494
Income (loss) from operations 4,712 (821) 8,863
Other income (expense), net:      
Interest, net 45 202 62
Other income (expense), net: (587) (765) (358)
Total other income (expense), net (542) (563) (296)
Income (loss) before income taxes 4,170 (1,384) 8,567
Income tax expense (benefit) (8,784) 268 411
Net income (loss) $ 12,954 $ (1,652) $ 8,156
Net income (loss) per common share:      
Basic (in dollars per share) $ 0.55 $ (0.07) $ 0.34
Diluted (in dollars per share) $ 0.53 $ (0.07) $ 0.32
Weighted-average number of shares:      
Basic (in shares) 23,402 24,121 23,685
Diluted (in shares) 24,360 24,121 25,646