Added trmm functionality