Scotland has had its highest cereal harvest yields in 20 years, according to figures released by the Scottish government.
Rural Affairs Secretary Richard Lochhead said frequent spells of wet weather had raised concerns the harvest would be a "disaster".
Spring barley, wheat and oilseed rape production increased this year.
High moisture content in the grains harvested, however, meant greater expense for farmers in drying it out.
The amount of oats and winter barley grown for harvesting in 2011 also fell, according to the figures gathered for the first Estimate of the Cereal and Oilseed Rape Harvest
Mr Lochhead said: "It appears that the last gasp of summer has saved the harvest and, in particular, it is heartening to see average cereal yields increase by 7.5% to 6.9 tonnes per hectare - the highest level in 20 years.
Click source to read FULL report