Changed to Kroki's DeepCopy class.