Adds tmat and check