Changes to poll signature to support --bg flag