Miscellaneous code that I use from project to project.