Added support for more transformation matrices.