Added Truncate Function