Added function required for original scan reconstruction