Add trimming support.