Add support for returning results from child functions via IPC