The following table provides the computation of basic and diluted earnings per share. | | | | | | | | | | | | | | Year Ended December 31, | (in thousands, except per share data) | 2016 | | 2015 | | 2014 | Numerator: | | | | | | Net (loss) income available to common shareholders | $ | (3,950 | ) | | $ | 8,364 |
| | $ | (18,214 | ) | Effect of dilutive securities: | | | | | | Derivative liability - warrants | (64 | ) | | (1,799 | ) | | — |
| Accretion on convertible preferred stock | — |
| | 222 |
| | — |
| Numerator for dilutive (loss) income per common share | (4,014 | ) | | 6,787 |
| | (18,214 | ) | | | | | | | Denominator: | | | | | | Weighted average shares used to compute basic (loss) income per common share | 27,433 |
| | 24,333 |
| | 17,756 |
| Effect of dilutive securities: | | | | | | Derivative liability - warrants | 16 |
| | 28 |
| | — |
| Convertible preferred stock | — |
| | 3,137 |
| | — |
| Stock options | — |
| | 249 |
| | — |
| Denominator for dilutive (loss) income per common share | 27,449 |
| | 27,747 |
| | 17,756 |
| | | | | | | Basic (loss) income per common share | $ | (0.14 | ) | | $ | 0.34 |
| | $ | (1.03 | ) | Diluted (loss) income per common share | $ | (0.15 | ) | | $ | 0.24 |
| | $ | (1.03 | ) |
|