Extrapolate poll functions into a file