The return object should be the path to the temp file containing the data and an history log of what happened in the session.
Check out loggr for this.