The worker module. Listens to the work messages and executes them.