Add declarations for internal functions.