Moved read_wait and user_app