I intentionally put these waits at the start of the `wait` loop to pre-empt latency in the device. Can you move them back?