Split up poll function