Added truncate option