Added vector truncation util