Added ability to set transform matrix