Is there a good way I can use this in the diagnostics code I'm working on which is not just copy-paste?