Add Truncate method implementation and few semantic improvement.