Added worker code