Wrapping all processing in function ProcessData