Modified worker for new parameter passing
Payload object now responsible for getting env vars from its payload, not the payload helper