Added Transform.flatten