Save the data if specified in the params