Refactor the alexa worker with a each loop.