Implemented transforms.
Fixed the matrix.