Made ProcessData a script instead of a function