Updates to the workers function in server.py