Somewhat untested and sketchy basics of trimming.