Adding timetoWait on WhileAsync