Waiting for device ready