I would suggest a configurable timeout for this loop, don't wanna get stuck forever.