Changed the Rename function