Only search for the function declaration for compatibility with other mods