Added user controlled parameters in worker and main