Prepared for the Auditor General of Scotland.