Wrote framework for worker polling.