How polling is done and how it’s used