Added rename function.