The following table summarizes the total cash and non-cash restructuring charges recorded during the year ended December 31, 2015 and 2016 (in thousands): 

 
Year Ended December 31,
 
2015
 
2016
Employee termination costs
$
3,791

 
$

Non-cash employee termination costs - stock-based compensation
113

 

Facility and other termination costs
637

 
(297
)
Total restructuring charge (benefit)
$
4,541

 
$
(297
)
The following table summarizes the cash-based restructuring charges liability activity during the year ended December 31, 2016 (in thousands):

 
Beginning balance
 
Charges
 
Payments
 
Benefits
 
Ending balance
Employee termination costs
$
12

 
$

 
$
(12
)
 
$

 
$

Facility and other termination costs
421

 

 
(124
)
 
(297
)
 

Total restructuring liability
$
433

 
$

 
$
(136
)
 
$
(297
)
 
$