Patched changes from digestPoller.js into digestPoller2.js