Add beginnings of mixed code execution support (#4613)