Preproccessor for trmm