Adjusted further to catch API definited functions that have a pointer
return type.