Refactored dataProcessor to take cb function as parameter and return true or false if the callback was invoked or not