Better Transformation Matrix Logic