Define the function array in global scope