This needs to be pulled into the outer loop before the `poll`.