This has already been done for the case of internal function call. However, it still needs doing for external calls.