Common functions that may be used by all other functions in the Harvey Lab code base.