Added a rename function