Table:
|  | Year ended March 31, |  |
| --- | --- | --- |
|  | 2019 | 2018 |
| Beginning balance | $6,164 | $4,931 |
| Additions based on tax positions related to current year | 164 | 142 |
| Additions for tax positions of prior years | 231 | 1,444 |
| Reductions due to change in foreign exchange rate | (301) | (353) |
| Expiration of statutes of limitation | (165) | — |
| Reductions due to settlements with tax authorities | (77) | — |
| Ending balance | $6,016 | $6,164 |
Paragraphs:
A reconciliation of the beginning and ending amount of unrecognized tax benefits is as follows:
Interest and penalty charges, if any, related to uncertain tax positions are classified as income tax expense in the accompanying consolidated statements of operations. As of March 31, 2019 and 2018, the Company had immaterial accrued interest or penalties related to uncertain tax positions.
The Company is subject to taxation in the United Kingdom and several foreign jurisdictions. As of March 31, 2019, the Company is no longer subject to examination by taxing authorities in the United Kingdom for years prior to March 31, 2017. The significant foreign jurisdictions in which the Company operates are no longer subject to examination by taxing authorities for years prior to March 31, 2016. In addition, net operating loss carryforwards in certain jurisdictions may be subject to adjustments by taxing authorities in future years when they are utilized.
The Company had approximately $24.9 million of unremitted foreign earnings as of March 31, 2019. Income taxes have been provided on approximately $10.0 million of the unremitted foreign earnings. Income taxes have not been provided on approximately $14.9 million of unremitted foreign earnings because they are considered to be indefinitely reinvested. The tax payable on the earnings that are indefinitely reinvested would be immaterial.
Question:
What was the ending balance in 2019 and 2018 respectively?
Answer: $6,016, $6,164