Use API for renaming