Ugly sleeps. Try using this
public void sleepUntil(int defaultTime, BooleanSupplier bs, Boolean big) throws InterruptedException {
if(big)
sleep(random(500,1000));
new ConditionalSleep(defaultTime * 1000) {
@Override
public boolean condition() throws InterruptedException {
return bs.getAsBoolean();
}
}.sleep();
if(big)
sleep(random(500,1000));
}