Functions

This file stores user-defined functions used throughout the cms.