Thread.sleep replaced with TimeUtil.sleepSeconds