Abdullah - Changes to Truncate function