Allow more complex data to be passed

One suggestion as in my case I was processing a CSV file and wanted to pass back object information along with the success flag.