Updated worker with example code