Miscellaneous functions required by packages dk*.