These functions are used in the global environemt and so must be exported. However, they are not intended for general use.