| Accrued Expenses |
Accrued Expenses Accrued expenses consisted of the following: | | | | | | | | | | June 28, |
| December 28, | | 2019 |
| 2018 | Payroll and related expenses | $ | 12,392 |
| | $ | 15,870 |
| Current portion of lease liabilities | 5,990 |
| | — |
| Warranty | 6,208 |
| | 6,433 |
| Income tax payable | 3,601 |
| | 6,691 |
| Other accrued expenses | 6,111 |
| | 4,613 |
| Total | $ | 34,302 |
| | $ | 33,607 |
|
Activity related to warranties is as follows: | | | | | | | | | | | | | | | | | | For the three months ended | | For the six months ended | | June 28, 2019 | | June 29, 2018 | | June 28, 2019 | | June 29, 2018 | Beginning warranty liability | $ | 5,740 |
| | $ | 6,596 |
| | $ | 6,433 |
| | $ | 6,481 |
| Charge to cost of sales | 1,558 |
| | 503 |
| | 2,133 |
| | 1,797 |
| Fair value of warranty assumed in acquisition | 100 |
| | — |
| | 100 |
| | — |
| Costs incurred | (1,190 | ) | | (957 | ) | | (2,458 | ) | | (2,136 | ) | Ending warranty liability | $ | 6,208 |
| | $ | 6,142 |
| | $ | 6,208 |
| | $ | 6,142 |
|
|