Added object rename function.