Work in progress: polling now works.