CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS - USD ($)
shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
Sep. 30, 2016
Sep. 30, 2017
Sep. 30, 2016
CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS        
Revenue $ 64,742 $ 55,185 $ 176,386 $ 151,435
Cost of revenue 31,520 27,566 86,572 77,303
Gross margin 33,222 27,619 89,814 74,132
Operating expenses:        
Research and development 10,347 9,190 30,246 26,708
Sales and marketing 12,692 10,852 36,082 32,101
General and administrative 5,109 5,407 16,413 15,279
Litigation settlement       400
Total operating expenses 28,148 25,449 82,741 74,488
Income (loss) from operations 5,074 2,170 7,073 (356)
Other income (expense), net:        
Interest, net 125 12 224 17
Other income (expense), net 79 (89) 183 (306)
Total other income (expense), net 204 (77) 407 (289)
Income (loss) before income taxes 5,278 2,093 7,480 (645)
Income tax expense (benefit) 93 316 (2,441) (9,585)
Net income $ 5,185 $ 1,777 $ 9,921 $ 8,940
Net income per common share:        
Basic (in dollars per share) $ 0.21 $ 0.08 $ 0.40 $ 0.38
Diluted (in dollars per share) $ 0.19 $ 0.07 $ 0.38 $ 0.37
Weighted-average number of shares:        
Basic (in shares) 25,050 23,424 24,551 23,307
Diluted (in shares) 27,122 24,530 26,393 24,149