National Records of Scotland is a non-ministerial department of the Scottish Government. It is responsible for civil registration, the census in Scotland, demography and statistics, family history, as well as the national archives and historical records. From Wikipedia