More lag tracker plotting. cagesort has the code that finds the indexs of all the different farms using nbe to check which elements connect.