Execution completed!
The function definition and call is a bit weird, but should work
Also adjusted code generation for function call