I think this deserves to be in a file of its own.  It is unrelated to the rest of the stuff in this file.