Exports the results locally

The parameters are the following: