Added functionality to trans matrix