Add sleep to make tests pass.