Accidentally deleted truncate helper in previous commit. Returned in this commit