Useful enough code for a future copy/paste, but not enough for a full blown library. Tested because I prefer code that runs.