Thread.sleep replaced by TimeUtil method