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. National Records of Scotland was formed from the merger of the General Register Office for Scotland and the National Archives of Scotland in 2011; it combines all the functions of the two former organisations. The offices of Registrar General for Scotland and Keeper of the Records of Scotland remain separate, but since 2011 both have been vested ex officio in the Chief Executive of National Records of Scotland.