Removed old code related to poll()