The provision for income taxes consists of the following (in thousands):
 
Year Ended December 31,
 
2016
 
2015
 
2014
Federal
 
 
 
 
 
Current
$
40,235

 
$
28,596

 
$
1,569

Deferred
24,794

 
6,679

 
37,570

 
65,029

 
35,275

 
39,139

State
 
 
 
 
 
Current
2,603

 
3,271

 
2,162

Deferred
2,636

 
(703
)
 
971

 
5,239

 
2,568

 
3,133

Foreign
 
 
 
 
 
Current
8,964

 
4,305

 
1,596

Deferred
(28,032
)
 
(67
)
 
669

 
(19,068
)
 
4,238

 
2,265

Provision for income taxes
$
51,200

 
$
42,081

 
$
44,537