Updated example to show results processed outside of the execute method