Change waiting way to use thread