Income Taxes (Tables)
6 Months Ended
Jun. 30, 2018
Income Tax Disclosure [Abstract]  
Reconciliation of effective income tax rate
The following table shows the Company's effective income tax rate for the three and six months ended June 30, 2018 and 2017 (in thousands):
 
Three Months Ended
June 30,
 
Six Months Ended
June 30,
 
2018
 
2017
 
2018
 
2017
Income (Loss) before provision for income taxes
$
9,358

 
$
(239
)
 
$
16,107

 
$
(4,640
)
Income tax (expense) benefit
$
(1,680
)
 
$
(6
)
 
$
(3,702
)
 
$
1,523

Effective tax rate
17.9
%
 
2.7
%
 
23.0
%
 
(32.8
)%