Export registerFunctions and use 'register' instead of 'export'