Prepared for the Auditor General for Scotland.