I am currently using int keyToUse = programBox.getAt(programBox.length - 1).key + 1; To find the largest current key value in the box, with adding \'+1\' so I can
int keyToUse = programBox.getAt(programBox.length - 1).key + 1;