@caesar2164 Can you give us a micro-design here before coding it up?  There are a few different ways it could go, and we've got plenty of big-thinking people here to talk it through before you write the code.