Changed delay to random