If there is a function to wait for certain app launched, I can remove the check from line 41~47.