Fix FunctionExecutionHandler and add examples