Common code used in camfire projects.