The political fallout from the Scottish government's beleaguered bottle return scheme has been considerable, but the legal fallout could be equally as significant.
A waste management firm is suing the Scottish government for almost £170m over the collapse of the plans.
The Court of Session in Edinburgh has been told Scottish ministers were negligent when they claimed the scheme was viable.
But lawyers for the government say the company was aware of the risks involved and the claim should be dismissed.