Added document duplication features.