Move shapshot from external libreris.