Implemented truncate and rename.