Added model rename function.