Parsing input data in worker