Added sorting an renaming functionality.