Add custom rename function