Fixed bug where the plugin looked for named declarations instead of specifically function declarations.