Added script for tree transformations.