Miscellaneous helpers that don't seem to fit anywhere else yet.