Fixed function call to handle function pointers.