Attempt at the lookups for function calls.
Not fully implemented yet, so can't test.