Added truncate method