Logout and renaming of the truncate function