CONSOLIDATED STATEMENTS OF OPERATIONS - USD ($)
shares in Thousands, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2015
Jun. 30, 2014
Jun. 30, 2015
Jun. 30, 2014
CONSOLIDATED STATEMENTS OF OPERATIONS        
Revenue $ 44,641 $ 36,661 $ 76,724 $ 68,516
Cost of revenue 22,312 17,694 38,784 33,313
Gross margin 22,329 18,967 37,940 35,203
Operating expenses:        
Research and development 8,122 7,097 16,117 13,872
Sales and marketing 7,812 6,364 15,179 12,665
General and administrative 4,288 3,440 8,909 7,128
Litigation settlement   35   35
Total operating expenses 20,222 16,936 40,205 33,700
Income (loss) from operations 2,107 2,031 (2,265) 1,503
Other income (expense):        
Interest, net 42 20 63 1
Other income (expense) 70 63 (340) 71
Total other income (expense) 112 83 (277) 72
Income (loss) before income taxes 2,219 2,114 (2,542) 1,575
Income tax expense (benefit) 178 103 (352) 103
Net income (loss) $ 2,041 $ 2,011 $ (2,190) $ 1,472
Net income (loss) per common share:        
Basic (in dollars per share) $ 0.08 $ 0.08 $ (0.09) $ 0.06
Diluted (in dollars per share) $ 0.08 $ 0.08 $ (0.09) $ 0.06
Weighted-average number of shares:        
Basic (in shares) 24,309 23,715 24,326 23,417
Diluted (in shares) 25,296 25,671 24,326 25,709