Common code for some of my projects.