Rename script is now fully functional