Added some tries code