Update code generator to execute external functions.