[thin_trim] first code drop.

No testing done as yet.