Completed change name function