processData should support a callback
To support functions being asynchronous