Added Truncate function