Updated worker cookbook similarly to the api cookbook