Fixed recognition of function declarations.