Have some idea for safely waiting for data.