Now create a debug function for all function definitions and create a function pointer for each function