Added sorting and pasting customization.