Using Rex.sleep instead of select