I did this in a hurry, but it appears to work locally. I tested it with a couple boring custom token type printers.