Add debug to clone.php