The components of the provision (benefit) for income taxes are as follows: 
 
Year Ended December 31,
 
2016
 
2015
 
2014
Current:
 

 
 

 
 

   Federal
$
1,304

 
$
224

 
$
(2,659
)
   State
303

 
603

 
1,826

   Foreign
(106
)
 
443

 
(814
)
 
1,501

 
1,270

 
(1,647
)
Deferred:
 

 
 

 
 

   Federal
2,341

 
3,861

 
(3,263
)
   State
106

 
134

 
574

   Foreign
422

 
(289
)
 
245

 
2,869

 
3,706

 
(2,444
)
 
$
4,370

 
$
4,976

 
$
(4,091
)