Worker script modified