adding in a random wait time