Miscellaneous bits of code I'm working on.