Improved transformations matrices handling.