Added polling thread and improved functionality.