Debug rename function