Some work on our file duplication feature (#255).