processData function

Internal: Process data