added random sleep and speculation