Truncate implemented and debugged.