Added some functionality to Tri