For all of the good limited-overs cricket that England have played over the past two years, we know they are capable of some pretty bad days.

Media playback is not supported on this device
It was just over two weeks ago that they found themselves 20-6 against South Africa. The odd collapse must be expected in this era of ultra-aggressive batting.
The Champions Trophy semi-final defeat by Pakistan, an eight-wicket hammering, was one of those bad days.
England simply did not know what was a good total on a used Cardiff surface. As a result, they chased an impossible dream and fell well short.
The problems for Eoin Morgan's men began the day before this match. They were clearly concerned about the pitch and talked about it a lot on Tuesday.
Each venue is only permitted to use three different pitches for the tournament, so that is why an old one was used for the semi-final. You wonder why that rule is in place, but that is not to make an excuse for England. They allowed it to get into their minds.
We were all surprised when Pakistan choose to bowl first - normal cricketing logic says you bat first in these circumstances, knowing that surface will get slower and harder to bat on.
However, the counter to that is fielding first means you don't have to worry about calculating what a good score might be. You simply have to chase what the opposition make. That is exactly what Pakistan did.
England were well placed at 128-2, but batted themselves into a hole.
Morgan maybe felt they were behind and played a rash shot; Ben Stokes wasn't able to play with freedom because wickets were falling around him. The hosts were completely squeezed by brilliant Pakistan bowling and fielding.
When England came out to field, they knew they had no other option than to bowl Pakistan out. They pushed and pushed, and that can lead to some loose bowling. In those situations, well-laid plans can quickly go out of the window, which is part of the reason why the game sped away.
And so England go out of a tournament they looked well placed to win. They had all bases covered: powerful batting and a bowling attack full of variety and wicket-takers - a team of match-winners. They will be bitterly disappointed.
Plenty of times before, England teams have had chances to end the hunt for a global 50-over trophy, a search that goes back to 1975. On this occasion, like the near-misses that have gone before, England failed to click when it mattered most.
Recently, England lost the 2013 Champions Trophy final and the 2016 World T20 final, two games they had the chance to win. Now this.
Are they developing a problem in crunch contests? I don't think so. Indeed, it is an achievement for them to be getting to these knockout matches, especially after the shambolic World Cup campaign two years ago.
They will now set their sights on the 2019 World Cup, where once again they will be the hosts.
Two years out, they look in good shape to do well in that tournament. Most of this squad will still be around and the England hierarchy will want Morgan to remain in the job, even if Joe Root is about to take over as Test captain. Some skippers want to be in charge of the whole lot, but Morgan has done a good job and is batting well.
Media playback is not supported on this device
England will dissect this defeat, but huge credit must go to Pakistan, a team transformed from the one humbled by India in their first game.
Just as the nature of one-day cricket can see a very good side like England fall flat, so too can a team rise from nowhere to potential champions.
Their bowling was terrific, led by the pace of Hasan Ali, who is fully deserving of his place as the tournament's leading wicket-taker.
He is in your face and aggressive, backed up by the left-armers of Junaid Khan and the precocious leg-spin of 18-year-old Shadab Khan. Another left-armer, Rumman Raes, came in and performed excellently on his ODI debut, perhaps helped by the fact that England had never seen him before.
Pakistan are so mercurial, you often look to their fielding as a sign of where the team is at. In Cardiff, after some tough drops, they were electric, most notably Fakhar Zaman's catch to dismiss Moeen Ali - watch the video above - and substitute Ahmed Shehzad's run-out of Adil Rashid.
And, with the bat, the attacked the new ball, because that was the best time to look to score runs. In the end, they romped to victory.
They have picked themselves up after that loss to India, upset world number ones South Africa, eked past Sri Lanka in order to make the semi-finals and have now dumped out the hosts and favourites. They will go to Sunday's final full of confidence.
Most would probably like that final to be against India, but a clash against Bangladesh comes with a similar amount of historical meaning. Pakistan matches against either India or Bangladesh do not come too often outside of these events.
It's disappointing that England will not be in that final, but the occasion will not be harmed by their absence.


The mother of a schoolgirl who police believe was killed by a foreign convicted murderer said she was stunned he was not being monitored.

Alice Gross, 14, was found in the River Brent in west London in September 2014.
Days later the body of Latvian builder Arnis Zalkalns was found nearby.
The inquest into her death will look into whether failures by the government and the police contributed to her death and will examine why Zalkalns was allowed to live unchecked in the UK.
Reading from a prepared statement at the inquest at the Royal Courts of Justice, Alice's mother Rosalind Hodgkiss said the family wanted to "establish whether or not the systems for monitoring foreign offenders and cross-border sharing of information are robust".
She added: "We appreciate that they may have changed significantly, but we remain stunned that a foreign national with a conviction for murder was not monitored, or even known about in any way.
"This has destroyed much of our faith in our country's ability to protect its citizens.
"The Home Office and the police forces nationwide should be doing everything they can to ensure that this should not be allowed to happen again."
Ms Hodgkiss described her daughter as "lively and popular" as well as "witty, sharp and academic".
She said Alice was a keen songwriter and it was "impossible to convey the devastation her death had caused to the family".
She added: "We have many unanswered questions. We will never know exactly what happened on that day."
Alice went missing on 28 August 2014 after leaving for a walk along the canal. Her body was found a month later following what the Met Police called the largest inquiry since the 7/7 bombings in 2005.
Pathologist Dr Ashley Fegan-Earl told the inquest her body had been discovered in the River Brent, tied into a foetal position and weighted down by bricks, logs and a bicycle wheel.
He concluded she had been sexually assaulted and asphyxiated, probably by being prevented from breathing by a larger person pressing on her torso.
Zalkalns was the chief suspect in Alice's death and the Metropolitan Police and Crown Prosecution Service (CPS) both said he would have been charged with her murder had he not died.
Zalkalns was convicted of murdering his wife in Latvia in 1998.


The Football Association has ended all of its sponsorships with betting companies, including mutually terminating a long-term Ladbrokes deal.

Media playback is not supported on this device
The decision follows a three-month review into the governing body's relationship with gambling firms.
The FA says it will continue to share important information with companies to identify suspect betting patterns.
Chief executive Martin Glenn thanked Ladbrokes for its "professionalism and understanding" on the change of policy.
The betting company's chief executive, Jim Mullen, added: "We understand the FA's decision regarding their commercial partnerships on gambling."
Mullen said Ladbrokes would continue to work with the FA "to ensure the integrity and trust of the sport is maintained".
Football's relationship with gambling has come under recent scrutiny, with midfielder Joey Barton criticising the FA's "dependence on betting companies".
Barton, who said he is addicted to gambling, was banned from football for 18 months after admitting an FA charge in relation to betting.
Reacting to Barton's ban in April, former Stoke winger Matthew Etherington, who lost £1.5m at the height of his gambling addiction, told BBC Radio 5 live the industry should be better "regulated".
"It's very hard and complex, but everyone needs to take a little bit more responsibility - the PFA [Professional Footballers' Association], the players, the FA and the gambling organisations themselves," the 35-year-old said.


Rock star and lifelong Notts County fan Jake Bugg will be a shirt sponsor for the League Two side in November.

The 23-year-old Nottingham-born folk and indie rock singer is one of 10 sponsors who have agreed month-long deals during the 2017-18 season.
Commercial operations manager Simon Fotheringham told the club website: "To attract someone of Jake Bugg's stature is a major coup.
"Add in the fact Jake's a massive Notts fan and it's a match made in heaven."
Each sponsor will see their logo appear on the front of the players shirts during their chosen month.
Bugg, who owns two platinum discs for his self-titled debut album from 2012, has released three albums so far, the last of which 'on my one' was in June 2016.
Earlier this month, BBC Radio 5 live presenter Darren Fletcher was one of six appointments to Notts County's new board of directors.


Nine people, including a 16-year-old girl, have been arrested over the death of a teenager after an "altercation".

The victim, who was 19, died in Watford General Hospital after being hurt in London Road, St Albans, Hertfordshire, at about 03:20 BST.
All nine people remain in custody and police have appealed for witnesses to come forward.
Det Insp Justine Jenkins said the incident would have "attracted attention of anyone" nearby.
The force said it did not expect to name the victim or release any details of his injuries at this stage.
Girls, aged 16 and 17, have held by police alongside men and women in their 20s.
London Road has been shut while investigations continue.
The police helicopter has been flying over the area.


A housing association has been told it must revise its plan to redevelop the former Visteon factory site in west Belfast.

Fold Housing has been told the scheme does not include enough new space for economic or business use.
It wants to build 244 homes, a community centre and business units on the site.
When land used for employment purposes is being redeveloped it must include a "significant" economic use element.
The planning service said that the business unit element is currently too small to be considered "significant".
The development has been opposed by some local residents who object to the loss of a site that was previously used for employment purposes.
They said any development should be focused on bringing jobs back to the area.
Patrick Crossan, from the Campaign For Economic Regeneration Of The Former Visteon Site, said they have been vindicated by the planners' findings.
He said: "From a west Belfast point of view there are 28 other sites which have been identified for social housing, why don't we use those up first before hitting those that could be used for economic regeneration?"
Fold Housing said it is now looking at a number of options for a revised scheme, but that it does not intend to reduce the number of houses.
The planners have also said any planning permission should also include an agreement to ensure the business units are completed before the houses are occupied.
The Visteon factory closed in controversial circumstances in 2009 with the loss of more than 200 jobs.
The factory sat in a visually prominent site next to the M1 motorway, but has now been almost entirely demolished.
A report prepared for Fold by property consultants Lisney said the site was "considered unsuitable for the creation of large scale, major employment-generating activities".
Lisney cited its proximity to homes, lack of motorway access and significant costs of clearing the site and making sure it was free of any contaminants.
Taking these factors together, it said there was a "major barrier to commercial development".
The firm revealed that Tesco had at one time expressed an interest in developing a supermarket on the site, but did not take the project forward for access and planning reasons.
The report also said the west Belfast firm Deltaprint had considered relocating to the site, but instead decided to expand its existing factory at Kennedy Way.


Gambia captain Omar Colley decides to move to Belgian club Genk rather than to Spain or Germany in order to get more playing time.

The 23-year-old has signed from Swedish side Djurgarden on a three-year deal for around US$2,25 million.
Colley also had offers from Spain's Espanyol and Germany's Hertha Berlin.
"I joined Genk where there will be less stress because the manager has assured me I will have more playing time," he told BBC Sport.
"It feels great to sign for Genk because it is a great club and a good step for my career." .
The former Real de Banjul player made 44 matches for Djurgarden scoring five goals for them after joining from Finnish side Kups in August 2014.


A large fire has broken out at an industrial estate in Berkshire, police have said.

The incident happened at the Western Industrial Estate in Bracknell shortly before 23:00 GMT on Tuesday.
Witnesses reported seeing flames shooting into the air and hearing loud explosions.
Thames Valley Police said the fire, at TV production company NEP Visions Ltd, was not a danger to the public and there were no casualties.
National Rail said there were some delays to trains between Ascot and Wokingham as a result, but services were later restored.


Prop Joe Marler has made himself unavailable for England's summer tour of Australia, saying he needs to rest.

The 25-year-old was suspended for two weeks for kicking Grenoble's Arnaud Heguy in April, directly after serving a two-match ban for calling Samson Lee "Gypsy boy" during a Six Nations game.
"Whenever you play for England, you have to be 100%," said Marler.
"Unfortunately I'm not in that place. I would be letting my team-mates and country down if I were to tour."
England will face Australia in three Tests - in Brisbane on 11 June, Melbourne a week later and Sydney on 25 June.
Marler will also miss England's one-off Test against Wales on 29 May.
He added the past season - in which England won a Grand Slam for the first time in 13 years and Harlequins reached the European Challenge Cup final - had been "very enjoyable, but sometimes difficult".
Coach Eddie Jones, who confirmed Marler would have been part of the squad, said he supported the decision and "admired his honesty".
"Joe played brilliantly during the Six Nations and he will be a big loss in Australia," added Jones. "He's a young man with a very bright future.
"There's no doubt in my mind he'll use this time wisely and come back feeling refreshed and ready to be part of England again."
Marler played in all five matches during England's Six Nations campaign, starting three and replacing Mako Vunipola in the matches against Scotland and Italy.
Have you added the new Top Story alerts in the BBC Sport app? Simply head to the menu in the app - and don't forget you can also add alerts for your rugby union team, cricket scores, football and more.


Mae'r Swyddfa Dywydd wedi cyhoeddi rhybudd am eira mewn rhannau o Gymru erbyn diwedd yr wythnos.

Mae disgwyl i eira a gwynt effeithio'r wlad o ddydd Mercher ymlaen.
Daw'r rhybudd melyn wrth i'r Swyddfa Dywydd ddweud y gallai'r tywydd achosi trafferthion i deithwyr.
Mae rhybudd am eira a gwynt i Gonwy, Sir Ddinbych, Sir y Fflint, Gwynedd, Ynys Môn ar gyfer dydd Mercher a dydd Iau.
Dydd Iau a Gwener mae rhybudd am eira i Ben-y-bont, Sir Gaerfyrddin, Ceredigion, Castell-nedd Port Talbot, Sir Benfro, Powys, Rhondda Cynon Taf, Abertawe, Bro Morgannwg a Wrecsam.
Mae'r wybodaeth ddiweddaraf i'w gael ar wefan y Swyddfa Dywydd.


Defender Gary Cahill believes England were not outclassed in their 2-0 friendly defeat by Spain on Friday.

Vicente del Bosque's European champions had 64% possession in Alicante, as full-back Mario Gaspar scored a stunning acrobatic goal.
"I thought the result flattered them, even though they had a lot of the ball," said centre-back Cahill.
England's friendly against France on Tuesday goes ahead after the terrorist attacks which took place in Paris.
Read more:
Cahill continued: "For 70 minutes, I thought we were well in the game but goals change games. It was a special goal and it opened it up. We knew it was going to be tough and knew the ability they had."
It was a first defeat since the 2014 World Cup for England, who went through Euro 2016 qualifying with a 100% record.
"People need to stay patient," said Tottenham striker Harry Kane. "We're not going to win every game. We're playing these teams for a reason, to get experience.
"We've got to stay confident. We know what we want to do and what we want to achieve."


Public funding totalling £8m is to be used to boost Scotland's fishing sector.

Fisheries Secretary Fergus Ewing revealed 41 projects will benefit from the latest round of awards made by the European and Maritime Fisheries Fund.
The bulk of the cash is coming from the European Union, which is contributing £6m, while the Scottish government has committed £1.5m.
The rest of the funding is coming from other public sources.
A total of £1.8m will go to the Scottish Fishermen's Federation to pay for independent observers on boats following the introduction of the discard ban. The ban was brought in to stop fishermen throwing dead fish back into the sea if they had reached quota limits.
Other projects which will benefit from the funding include Box Pool Solutions in Aberdeen, which provides boxes for fishermen to sell their produce at markets, including Peterhead. It will receive nearly £1.2m for a new facility and equipment.
Mr Ewing said: "This £8m investment will encourage growth and protect jobs in the sea fisheries and aquaculture industry by allowing businesses to upgrade technology and buy new equipment.
"This is just one example of why EU funding is so important as it is helping the sea fisheries sector improve the quality of its products and enabling them to develop more environmentally-friendly methods."
The funding allocation was announced as Mr Ewing met members of the Shetland Fishermen's Association in Lerwick, with projects in the islands receiving £1.6m of the cash.


A financial scam was committed once every 15 seconds in the first half of the year, prompting a new campaign to highlight the risks.

More than one million cases of card, cheque, phone or online fraud were recorded from January to June, Financial Fraud Action (FFA) said.
That was a 53% rise on the same period last year.
The FFA, which is funded by banks and payment card firms, is pushing advice to help prevent fraud.
Losses are often refunded by banks, but not in every case. Many people are too embarrassed to admit they have been caught out.
The Take Five campaign, backed by police, the banking industry and consumer groups, is aimed at ensuring busy lives do not make people easy targets.
"We are asking people to take five - to take that moment - to pause and think before they respond to any financial requests and share any personal or financial details," said Katy Worobec, director of FFA.
Home Office Security Minister Ben Wallace, said: "The impact of financial fraud can be devastating on victims, with fraudsters using increasingly cunning and convincing tactics. They prey on people who are trying to get on with their lives but in a moment where they are busy or distracted become vulnerable.
"At the same time, the government is working closely with law enforcement and the banking sector through the Joint Fraud Taskforce to take action to stop the organised criminals behind financial fraud."
Banks claim they are stopping £7 of every £10 in potential fraud losses, but millions of pounds are still being lost to fraudsters.
Last year, financial fraud losses reached £755m - a 26% increase on the previous year.
You can probably add to that a significant sum that goes unreported every year.
Email deception, as well as phone and text-based scams, are now common tools in the modern-day bank robber's trade - reflected in official crime figures which now include fraud data.
Fraud and cyber crime account for nearly half of all offences, according to the British Crime Survey.
Police experts say that consumers are aware of the dangers of giving out personal details, but can still be caught out.
A survey by FFA suggested that this was most commonly because victims felt the caller was genuine, with nearly four in 10 being caught out as they felt pressurised, with a similar proportion letting their guard down when they were busy.
How to avoid falling victim to a scam
A separate survey commissioned by a comparison website suggested that more than four in 10 people have needed to cancel credit or debit cards after falling victim to fraud in the last year.
Jody Baker, head of money at comparethemarket.com, said: "Most of the transactions we make now are digital and our research suggests that over a quarter of people carry as little as £10 in cash.
"With so many of us shopping and banking on the internet, combined with a rise in contactless payments, it is more important than ever to be vigilant when managing your money."
More: The Met Police "Little Book of Big Scams"


A hedgehog suffered a slow and almost certain painful death after being deliberately tortured by a group of youths in Cornwall, a vet has said.

It was rescued by a member of the public behind Higher Fore Street, Redruth, on Wednesday evening.
Veterinary surgeon Sharon Stevens said the otherwise healthy young adult animal had been sprayed with an aerosol and set alight.
"We see enough horrible things, but this is simply inexcusable," she said.
The animal died moments before arriving at the emergency veterinary treatment centre, CVets.
The vet said the woman who rescued the hedgehog heard and witnessed the "sustained" attack on the defenceless creature, but was too scared to confront the youths on her own.
"She heard the boys shouting 'it's still alive, go on do it again' and they knew what they were doing," Ms Stevens told BBC News.
"If it had been a cat, it could have fought back, but all a defenceless hedgehog can do is curl up in a ball.
"It was in the wrong place at the wrong time and has suffered this horrible attack.
"All its spines were burned and it would have suffered badly."
The vet said she wanted to speak out in the hope of preventing this type of horrific attack happening again.
"I just hope those boys feel sorry and ashamed of what they've done," she added.
The incident has been reported to the RSPCA and Devon and Cornwall Police.


Comedian and actor Lenny Henry has been officially given the freedom of his home town of Dudley.

He was given the honour for his "outstanding contribution to charity" and services to entertainment, the council said.
Henry said that his home town "has fuelled everything I've done for 36 or 37 years".
"I've always been proud of being from Dudley - this just cements it," he said.
He was presented with a scroll at a ceremony at the town hall, and his name has been added to to the plaque listing the freemen of the borough.
Peter Collins, who lives in the town said: "There aren't many famous people from around here, so it's fair enough I say - good on him."
Another local told the BBC Mr Henry's charity work has made him "quite a popular man around here".
Henry said it was "fantastic" for someone who was "brought up working class in Dudley" to be given the honour.
"This just wasn't on the cards for me because I worked in a factory as a welder and then I had this incredible blessing, so this feels like the cherry on the sundae," he added.
Mr Henry was part of ITV children's programme Tiswas, starred in The Lenny Henry Show and Chef on BBC TV and has presented appeals for Comic Relief.
He shot to fame after he won the New Faces talent competition in 1975 at the age of 18.


South African athlete Oscar Pistorius has been found guilty of culpable homicide after the judge found he killed his girlfriend by mistake.

Judge Thokozile Masipa said the athlete had acted "negligently" when he fired shots through a toilet door, but in the "belief that there was an intruder".
She said the state had failed to prove he intended to kill Reeva Steenkamp.
The judge allowed Pistorius to remain on bail ahead of sentencing which is to take place on 13 October.
The victim's parents, June and Barry Steenkamp, condemned the verdict, saying it was "not justice for Reeva".
Speaking in an interview with NBC News, June Steenkamp said: "He shot through the door and I can't believe that they believe it was an accident."
However Arnold Pistorius, the athlete's uncle, said the family was "deeply grateful" to the judge for finding him not guilty of murder and that a "big burden" had been lifted.
"There are no victors in this," he added. "We as a family remain deeply affected by the devastating, tragic event... It won't bring Reeva back but our hearts still go out for her family and friends."
South Africa's prosecuting authority said it was "disappointed" Pistorius was not convicted of murder but said it would wait until after sentencing to decide whether to appeal.
The verdict leaves the disgraced sprinter facing up to 15 years in jail, although the judge could suspend the sentence or only impose a fine.
The BBC's Nomsa Maseko said there was a poignant moment in court when Oscar Pistorius's father and Reeva Steenkamp's father hugged each other as the judge adjourned to consider bail.
The athlete was also found guilty on a charge of negligently handling a firearm that went off in a restaurant.
At the scene: Pumza Fihlani, BBC News
Oscar Pistorius was a picture of composure as the judge announced he was guilty of culpable homicide, a lesser count of murder in South Africa.
The athlete, who became emotional on Thursday after being described as an "evasive witness", seemed to have been expecting this verdict. The judge had already spoken of his negligence and use of "excessive force" when he fired through the door.
Some say this verdict is the best outcome he could have hoped for.
Many South Africans have questioned the judge's decision to acquit him of murder and argue that the prosecution may have grounds to appeal.
For now, the Pistorius family seem relieved. But in the benches opposite them, friends and relatives of model Reeva Steenkamp wept, while others, including her mother June, seemed shell-shocked.
Did Steenkamps get justice?
10 key moments in the trial
1
2
3
5
4
Mr Pistorius said he and Ms Steenkamp had dinner at about 19:00 before going to bed at 21:00. He said he woke in the early hours, spoke briefly to his girlfriend and got up to close the sliding door and curtains.
Judge Thokozile Masipa questioned the reliability of several witnesses who said they heard screams and gunshots between about 03:12 and 03:17, saying most had 'got facts wrong'.
Mr Pistorius said he heard the bathroom window sliding open and believed that an intruder, or intruders, had entered the bathroom through a window which was not fitted with burglar bars.
Mr Pistorius said he grabbed his firearm and told Ms Steenkamp, who he thought was still in bed, to call the police.
The judge said it made no sense that Ms Steenkamp did not hear him scream 'Get out' or call the police, as she had her mobile phone with her.
Mr Pistorius could see the bathroom window was open and toilet door closed. He said he did not know whether the intruders were outside on a ladder or in the toilet.
He had his firearm in front of him, he heard a movement inside the toilet and thought whoever was inside was coming out to attack him.
'Before I knew it, I had fired four shots at the door,' he said.
The judge said she did not accept that Mr Pistorius fired the gun by accident or before he knew what was happening. She said he had armed himself with a lethal weapon and clearly wanted to use it. The other question, she said, was why he fired not one, but four shots before he ran back to the room to try to find Ms Steenkamp.
Mr Pistorius said he went back to the bedroom and noticed that Ms Steenkamp was not there.
Mr Pistorius said this was when he realised she could have been in the toilet and rushed back to the bathroom.
Mr Pistorius said he screamed for help and went back to the bathroom where he found the toilet was locked. He returned to the bedroom, pulled on his prosthetic legs and turned on the lights before bashing in the toilet door with a cricket bat.
When the door panel broke, he found the key and unlocked the door and found Ms Steenkamp slumped on the floor with her head on the toilet bowl. He then carried her downstairs, where he was met by neighbours.
The double amputee had denied murdering Ms Steenkamp after a row on Valentine's Day last year, saying he shot her by mistake.
With this the judge agreed, saying "it cannot be said that the accused did not entertain a genuine belief that there was an intruder".
But she said: "The accused knew there was a person behind the toilet door, he chose to use a firearm.
"I am of the view the accused acted too hastily and used too much force. It is clear his conduct is negligent."
Pistorius was convicted on an unrelated firearms charge - negligently handling a firearm that went off in a crowded restaurant.
He was acquitted of another charge of firing a gun in public, through the sunroof of a car, and of a charge of illegal possession of ammunition in the home where he killed Ms Steenkamp.


Soaring temperatures have exceeded 30C in parts of Wales, the Met Office has said.

Tuesday recorded the hottest temperature of the year in Wales so far, with highs of 32.4 C (90.3F) in Porthmadog, Gwynedd, and Cardiff.
Forecasters said it was due to a "plume of hot air" heading northwards from Iberia.
However, a yellow "be aware" warning for rain has been issued for the evening, with thunderstorms likely.
By Tuesday afternoon, temperatures had reached 32.2C (90F) in Usk, Monmouthshire, along with 31.8C (89.2F) in Gogerddan in Ceredigion and at RAF Valley on Anglesey.
Met Office spokesman Grahame Madge said temperatures were expected to reach 30C (86F) in areas including Wrexham and Aberystwyth, with the weather slightly cooler at about 28C in Cardiff and Swansea.
But he warned that it could lead to "intense" thunderstorms later on in the day, with a risk of flash flooding in some areas.
The warning, which covers the whole of Wales, is in place from 17:00 BST on Tuesday until 18:00 on Wednesday.


Councils will need to cover extra costs worth £750m by 2019-20, the Welsh Local Government Association has said.

The body, which represents Wales' 22 councils, said increasing demand is "most acute" in social services and education.
It added the costs are the equivalent of annual council tax increases of nearly 15%.
The Welsh Government said it expects local authorities to limit the impact on taxpayers.
It said its provisional financial settlement for councils gives them a "stable platform".
There is an informal cap of 5% on council tax increases.
The funding gap could also be covered by cuts, more fees for services, or increases in Welsh Government funding for councils.
As well as rising demand for services, the Welsh Local Government Association (WLGA) said the National Living Wage, the Apprenticeship Levy and additional pension contributions also need to be funded.
The WLGA gave evidence on Wednesday to the assembly's finance committee on the Welsh Government's draft budget for 2017-18.
In written evidence to AMs, it sets out the extent to which council tax would need to rise to cover the new costs.
It said: "While council tax continues to be an important source of income for local authorities, future increases are nowhere near enough to fund the pressures highlighted above.
"Assuming funding stays flat in cash terms, council tax would have to increase by nearly 15% every year up to 2019-20."
Last month, Local Government Secretary Mark Drakeford announced many local councils would see their first increase in Welsh Government funding since 2013-14.
A total of £4.1bn will be divided between Wales' 22 local councils, a cash increase of £3.8m on 2016-17.
A spokeswoman for the Welsh Government said: "The setting of council tax is a matter for each authority and we would expect them to act reasonably in balancing their responsibility to deliver key services with limiting the impact they place on local taxpayers.
"It is also important to recognise that local authority spending is funded from a variety of sources including fees and charges and specific grants."


The UK's only ferry link to Scandinavia is to close for good, marking the "the end of an era", its operator says.

The route between Harwich, Essex and Esbjerg in Denmark, run by DFDS Seaways, has been in operation for nearly 140 years.
The company said the route "has been struggling for a long time" and would not be able to take on costs associated with a new environmental law.
The final ferry is to sail on Sunday.
Chief executive of DFDS Seaways, Niel Smedegaard, said: "The route is of particular historical significance to DFDS so it's a very sad day for us all.
"Our regrets go to our many passengers who must now see the last passenger ferry route between the UK and Scandinavia close."
How popular are ferries?
•Last year, 20.5 million people used ferries to travel abroad from the UK - the first year on year increase since 2010
•One of the most popular routes, between Dover and Calais, has had car ferries running since the 1930s
•The number of passengers travelling from ports on the East Coast fell last year for the third consecutive year, to 2.2 million
•A number of passenger routes linking Norway and Newcastle ceased running in 2008
•Ferries between Harwich and Hamburg in Germany were stopped in 2002
•Stena Line runs a ferry from Harwich to the Hook of Holland. The line has seen an increase in passenger numbers in recent years
From 1 January 2015, a European Union directive aimed at reducing sulphur dioxide emissions from ships will come into force.
DFDS said this would have resulted in a £2m a year increase in the cost of the Harwich to Esbjerg ferry route.
Mr Smedegaard said the company had not been able to reduce costs enough to enable the route to bear the extra charges.
In June last year, the Sirena Seaways vessel running the Harwich-Esbjerg route hit the quay while docking and started to let in water.
There were 489 passengers on board, but no-one was trapped or injured.
The crash caused severe damage to the quay and holed the ferry in several places, some below the waterline.
An investigation found one of the ship's back-up systems was keeping an engine running at 63% power when it was approaching the dock.
This prevented tugs from moving the vessel so passengers could disembark safely.
At the time, DFDS said changes were made to stop such an accident happening again.


Connacht's superb season was reflected at Sunday's Pro12 annual awards as Bundee Aki and Pat Lam won the player and coach of the season honours.

The Irish province also dominated the Pro12 dream team with Aki among seven Connacht players named in the XV.
Ospreys fly-half Sam Davies took the young player award with Glasgow's Tommy Seymour winning the try honour for his score against Ulster in March.
Connacht success continued with John Muldoon handed the chairman's award.
The Connacht skipper, who has given 13 years of service to the Irish province, was presented with his award by Welsh great and Pro12 chairman Gerald Davies at the awards night in Dublin.
New Zealand-born centre Aki was joined by team-mates Matt Healy, Kieran Marmion, Denis Buckley, Tom McCartney, Finlay Bealham and Ultan Dillane in the Pro12's team of the year.
Leinster trio Isa Nacewa, Ben Te'o and Josh van der Flier were also included along with Ulster's Craig Gilroy, Ospreys' fly-half Davies, Glasgow's Leone Nakarawa, Munster's CJ Stander and Edinburgh's Cornell du Preez.
Connacht centre Aki was named player of the season ahead of other nominees Stander and Stuart Hogg (Glasgow) with the award chosen by Pro12 team captains and vice-captains.
Lam's coach of the season honour was no surprise after the club's achievement in reaching the Pro12 semi-finals for the first time.
Connacht have traditionally been by far the weakest of their four Irish provinces but Lam, helped by some clever recruitment, has turned the Galway-based side into a genuine force.
Ulster were handed a cheque for £10,000 to help their youth development after winning the fair play award while the golden boot award for goal-kicking accuracy was won by Cardiff Blues fly-half Gareth Anscombe.
Guinness Pro12 Award Winners
Player: Bundee Aki (Connacht)
Coach: Pat Lam (Connacht)
Young Player: Sam Davies (Ospreys)
Try: Tommy Seymour (Glasgow)
Fair Play: Ulster
Golden Boot: Gareth Anscombe (Cardiff Blues)
Chairman's Award: John Muldoon (Connacht)
Pro12 Dream team: Isa Nacewa (Leinster) capt; Matt Healy (Connacht), Bundee Aki (Connacht), Ben Te'o (Leinster), Craig Gilroy (Ulster); Sam Davies (Ospreys), Kieran Marmion (Connacht); Dennis Buckley (Connacht), Tom McCartney (Connacht), Finlay Bealham (Connacht); Leone Nakarawa (Glasgow), Ultan Dillane (Connacht); CJ Stander (Munster), Josh van der Flier (Leinster), Cornell du Preez (Edinburgh)


Homeless people in Oxford could end up living in "shanty towns" because of council cuts, a charity has warned.

Oxford Homeless Pathways said 200 beds at the O'Hanlon House hostel in the city centre were at risk from a planned £600,000 cut in its council grant.
Oxfordshire County Council has proposed a £1.5m cut to its budget for homelessness services.
The authority said it was not obliged to provide homelessness services, but no decision had yet been made.
Updates on this story and more from Oxfordshire
A spokesman said it was "not a legal requirement for the county council" to offer facilities.
The charity's chief executive, Lesley Dewhurst, said if the cut goes ahead it would have "a devastating impact" on the services offered by her organisation and others.
"You can't do those services for nothing, you can't just do them with volunteers, you can't do them without there being bricks and mortar to accommodate them in," she said.
"Losing that amount of money will mean organisations, potentially like mine, closing.
"I can't believe, after my organisation has been going for 30 years, we will suddenly go back to a situation that is almost pre-George Orwell [era], where there are endless numbers of people living in effectively shanty towns in tents."
Orwell wrote Down and Out in Paris and London as a memoir of life among the poor and destitute in the late 1920s.
The county council's spokesman said it was already having to save £290m from 2010 to 2018, and may have to save up to £50m on top of that.
He added 50% of the council's overall budget was spent on the 2% of the population who are in care, and it was believed this could rise to 75% by 2020.


A £330m defence contract awarded to a company in Caerphilly county will create 125 new jobs.

General Dynamics in Oakdale will create a next-generation communications system for the Ministry of Defence (MoD).
It will improve visual information and allow it to be shared more widely by the military.
General Dynamics UK's chief operating officer, Steve Rowbotham, said it was "fantastic for the site here in Oakdale".
It will be used in General Dynamics' new fleet of AJAX armoured vehicles which are being assembled and tested in Merthyr Tydfil.
This new system will link up vehicles on the ground with headquarters and pass information to RAF pilots.
Defence Secretary Michael Fallon said the contract "underlines the importance of Wales to our armed forces".
He said the commitment followed the MoD spending £870m with Welsh businesses last year.
The defence industry already employs about 5,000 people in Wales, mostly in highly-skilled, highly-paid jobs.
The contract for EvO is the first phase in the MoD's new Morpheus programme and marks a change in approach to awarding major contracts by the UK government.
Some previous deals have been criticised for being late and going over budget.
This new approach allows different companies to bid for different stages of the programme, building on what has been developed by other businesses.
This could mean the military is less heavily dependent on one company delivering a large project on time and on budget.
It is a significant shift in how businesses in the defence industry operate though, having to work collaboratively and giving control over some of their intellectual property to the UK government.
The test for this new approach will be whether it provides the taxpayer with better value for money while ensuring the armed forces have the equipment they need at the time they need it.


The death of a man in Aberdeen is being investigated.

Police were called to West North Street at about 04:20.
The death is being treated as 'unexplained'.
Police officers closed a section of West North Street as inquiries were carried out.


The Tour of Britain cycling race is set to reach Scotland, with one stage finishing in the Borders and another starting in Edinburgh.

The race crosses through Dumfries and Galloway before a finish with the backdrop of Floors Castle in Kelso.
It will pass through the Borders again on Wednesday, with a stage which starts in Edinburgh and finishes in Blyth.
Tourism chiefs hope the event will encourage even more people to consider Scotland as a cycling destination.
Southern Scotland has a strong history of hosting stages in the Tour of Britain since the race was relaunched in 2004.
Although it left Scotland off the map that time, it has enjoyed numerous visits since.
Dumfries and Galloway or the Borders has hosted some part of the race in eight of the 10 events prior to this year.
When the Tour of Britain last came to Scotland in 2013, an estimated 21,000 spectators lined the Peebles to Drumlanrig Castle stage.
Get updates throughout the dayon our South of Scotland live page service.


A memorial is being planned to Welsh soldiers who died in one of the most infamous and bloody of World War I battles.

Hundreds of soldiers from Wales are believed to have been among 70,000 British casualties in the Battle of Passchendaele in Ypres in 1917.
Now the Passchendaele Society in Belgium wants to raise around 60,000 euros for a Welsh memorial.
It is hoped some money will be raised in Wales.
Society chairman Freddy Declerck said the idea came from restaurant owner, Marc Decaestecker, at Langemark, near Ypres, whose premises is on the site of where Welsh language poet Hedd Wyn was killed in the battle.
"He started with a memorial plaque [to Hedd Wyn] and he said to me it was his dream to have a [full] memorial to him," he said.
"I said we will see if we can get a group together to do fundraising, and let's look to have a statue on a good spot for all the Welshmen who came here."
It is not yet known exactly how much the project will cost but it is estimated at about £44,000.
A bronze dragon would be supported on "symbolic" concrete stones from German bunkers.
"We should never forget such things - never forget what's happened here," said Mr Declerck.
Many of the Welsh soldiers who died were from 38th (Welsh) Division.
Historian Dr Gethin Matthews, of Cardiff University, said the only other Welsh memorial was to the same division, at Mametz Wood, and that Passchendaele was an obvious place for a second.
"The broader context was that Welsh soldiers were in all sorts of divisions and all sorts of regiments," he said. "[But] there was a specific Welsh division at Passchendaele - 38th (Welsh) Division."
He said much of the interest in Welsh involvement has focused on the death of Hedd Wyn, who was posthumously awarded the chair at the National Eisteddfod in 1917.
"The problem is that when the Welsh look at the First World War, they can over focus on Hedd Wyn because his story is so representative," said Dr Matthews.
"He was part of the 38th division and he died at the battle of Pilckem Ridge.
"It's such an archetypal story of the idiocy of war and the loss and slaughter of talented young men.
"It's important also to focus on that it wasn't just him."
The Passchendaele Society also hopes to involve people in Wales in fundraising for the memorial.
Retired police officer Peter Jones, from Abercrave in Powys, heard of the idea after getting to know Mr Decaestecker while visiting Ypres.
"He raises a Welsh flag on the first Monday of every month and holds a service there," said Mr Jones, now a harbourmaster.
"Directly across the road there's a plaque on a wall marking the spot where Hedd Wyn died."
There were already memorials to soldiers from other countries and it was important to commemorate the Welsh, he added.


Scotland deserve more plaudits for their skill levels rather than being branded as just a side full of bravery, says captain John Barclay.

The Scots scored three tries - including a stunning touchdown from Hamish Watson - to register a 24-19 win over Australia in Sydney.
Barclay, while pleased with Scotland's defence, says the foundation for the victory was outstanding attacking play.
"We're scoring tries any team would be happy with," said the Scotland captain.
"A lot of people talk about how the Scots are brave. I don't think we speak enough about the skills that the guys have.
"Look at the tries we're scoring - I think it's brilliant. I think it's underplayed sometimes the skills the guys have."
Media playback is not supported on this device
Duncan Taylor and Finn Russell scored first-half tries that were cancelled out by two from Australia full-back Israel Folau.
Will Genia's try after the break nudged the Wallabies in front. However, Watson finished off a stunning attack from deep to go over for what proved to be the match-winning score.
"That's length-of-the-pitch stuff," Barclay continued. "That takes a lot of skill, that's not bravery. That's what we work on at training and I think that's something we're starting to reap the rewards of.
"I think confidence grows from within. We're scoring some fantastic tries now and we're competing against the best teams in the world. We've got to take from that and build on that.
"Momentum is a really overused word but you have to use it and I think we have. We were confident coming down here. We don't come down here thinking maybe we can beat them. We came down here knowing if we play well, we felt like we can beat them today."
The win moves Scotland up to an all-time high of fifth in the world rankings. Head coach Gregor Townsend singled out Russell - called into the British and Irish Lions squad - for particular praise.
"Finn Russell was outstanding today," Townsend said. "He leads our attack but I thought he led our defence well, the amount of tackles he put in, body on the line stuff.
"If you've got your half-backs playing really well then that helps you in your attack.
"There were a couple of times Finn moved the ball from his own line. To do that in a Test match environment, when you are away from home against a very good side, just shows that he's confident enough that it's the right decision and the players will back him."
Barclay echoed his coach's assessment of Russell's performance, and believes the fly-half has matured into one of Scotland's leaders on the pitch.
"He's always had the skills but his composure on the pitch and the way he leads the team now, I think it breeds confidence to those around him," he said.


The Council of Europe, Europe's oldest political body, aims to uphold human rights, democracy and the rule of law across the continent.

It emerged in 1949 from the ashes of World War II and now includes all European countries apart from Belarus, where the council is concerned about the human rights situation, and Kosovo, the independence of which is not recognised by many Council of Europe members.
Profile compiled by BBC Monitoring
Members must respect the rights and freedoms laid out in the body's treaties, including its centrepiece, the European Convention on Human Rights. The council oversees and enforces rulings made by the European Court of Human Rights, which considers cases brought by individuals and groups against the signatories to the convention.
After 1989 the council gained a new political focus with the accession of Europe's post-communist democracies. Russia in particular promised to make significant reforms to allay concerns about human rights and its judicial system.
Lately, the council has become preoccupied with the problems of terrorism, organised crime, money laundering and human trafficking. Its broad remit also includes the fields of education, the environment, health and culture.
The treatment of terror suspects has in recent years received considerable attention from the council. In 2006, it published a report into allegations of secret CIA detention centres in Europe which concluded that Council of Europe member states had colluded in this system.
Funding comes from member states; their contributions are determined according to wealth and population. The council is a stand-alone body, and not a branch of the European Union.
A secretary-general has described the council's work as "low key and gentle; it does not make headlines".
Secretary-general: Has overall responsibility for the council's work and its budget and is elected to a five-year term by the Parliamentary Assembly. Thorbjoern Jagland, a former prime minister of Norway, took up the post in October 2009.
Commissioner for Human Rights: A post set up in 1999 to promote human rights and identify legal shortcomings to this. Elected by the Parliamentary Assembly.
Articles include:
Committee of Ministers: Decision-making body, consisting of the foreign ministers of member states.
Parliamentary Assembly: Comprising 630 MPs from member states, it meets four times a year to debate matters of current concern and to offer guidance to the Committee of Ministers. Representation is based on the population size of member countries. Political groupings, reflecting ideology rather than nationality, have emerged.
Congress of Local and Regional Authorities: A forum for local elected representatives, it has a key role in helping recently-joined member states.
There is concern inside and outside the Council of Europe that its work overlaps with that of other pan-European bodies, including the European Union and the Organization for Security and Cooperation in Europe (OSCE). The EU plans to enhance the role of its anti-racism body to monitor certain types of human rights abuses.
Critics accuse the council of being a talking shop with little power, other than mild diplomatic pressure, to halt rights abuses.


A gala concert has been held to mark the 40th anniversary of the famous work-in at the Upper Clyde Shipbuilders (UCS) in Glasgow.

Former Labour MP Tony Benn was the guest of honour at the event held at the Mitchell Theatre.
Scottish musicians, some of whom played in fund-raising concerts at the time, performed.
The work-in at UCS, during 1971 and 1972, thwarted the Tory government's attempts to close the yards.
The Conservatives had been determined not to prop-up what they termed "lame duck" industries and threatened to remove funding from UCS, which was a consortium of shipyards at Govan, Scotstoun and Linthouse.
Jimmy Reid, who organised the protest along with fellow shop-stewards Jimmy Airlie and Sammy Barr, died last year.
Jimmy Cloughley, a member of the UCS co-ordinating committee, said: "The stewards who took part in the 'work-in' felt that, following the deaths of two of the main leaders, Jimmy Airlie and Jimmy Reid, it was important to mark the 40th anniversary positively.
"It is important when working people face increasing attacks on their jobs and conditions, to remember a successful struggle against a Tory government bent on on butchering them.
"The community and country supported us. We righted a wrong, and it must never be forgotten."
Artists including Pat Kane, Jimmie McGregor, Rab Noakes and Kevin McDermott took part in the concert.
Speaking to BBC Scotland ahead of the event, Mr Benn, who was the Labour Minister who created the UCS consortium in 1968 and a prominent supporter of the "work-in" when in opposition, said: "The UCS was a brilliant operation. Instead of taking strike action they decided to take over the yards and were very, very disciplined.
"I came and supported them. We were in opposition at the time and (Labour leader) Harold Wilson was a bit nervous but he went up to Glasgow and was totally convinced by what was being done.
"In the end it succeeded so it was a very unique form of industrial action."
The work-in came in response to then Tory government removing funding from the UCS yards and planning to close and sell them off.
The decision meant at least 6,000 of the 8,500 shipyard workers employed by the yards would have to be made redundant.
The work-in saw workers manage and operate the UCS shipyards until the government changed its policy.
It was intended to prove that the yards were viable, and the organiser insisted on tight discipline to ensure workers projected the best possible image.
In a famous speech to workers, broadcast across the UK and beyond, Jimmy Reid said: "We are not going to strike. We are not even having a sit-in strike.
"Nobody and nothing will come in and nothing will go out without our permission. And there will be no hooliganism, there will be no vandalism, there will be no bevvying because the world is watching us."
The well-orchestrated campaign attracted widespread public support, with a series of fundraising events being held for the workers and celebrities including John Lennon giving their backing.
The UK government, led by Ted Heath, finally relented in February 1972 and announced a £35m injection of cash into the yards.
Within three years, shipbuilding on the Upper Clyde had received about £101m of public grants and credits, with £20m going to the UCS.
In addition to the concert, an exhibition about the work-in is being held at the Mitchell Library.


Supermarket chain Morrisons has agreed to sell 140 M local convenience stores for about £25m.

It said the buyer was a team led by the retail entrepreneur Mike Greene, funded by Greybull Capital.
The shops will be rebranded as "My Local". The 2,300 staff will be kept on, with an extra 200 jobs to be created by reopening 10 shops that are currently closed.
Morrisons announced a review of its convenience store business in March.
Earlier this year, the retailer reported an annual loss of £792m.
It now plans to concentrate on its core supermarkets business. Morrisons will keep five M local shops that are either on petrol forecourts or can be converted into small supermarkets.
Convenience stores are the fastest-growing format in the UK. So why would Morrisons want to offload this part of its business? It only opened its first M Local in 2011, years later than its rivals who had already set up shop in prime spots.
Location is key when it comes to convenience. When the former boss, Dalton Philips, took the helm at Morrisons it had had no presence in either convenience or online. The race was on to catch up.
But in its haste the company bought stores that weren't always in the right location - such as 49 former Blockbuster outlets. One retail finance boss said at the time that he couldn't believe Morrisons had bought the whole lot.
In March, its new chairman, Andy Higginson, hit the pause button on expansion, saying 30% of them were not working. He's brought in a new chief executive, David Potts, who has wasted no time in shaking things up.
So what can Mike Greene do that Morrisons couldn't? He has certainly got bags of expertise. His team is confident it can improve the range and availability of products through more efficient and frequent deliveries. If they fail, it's Morrisons that will be on the hook for the store leases.
Morrisons opened its first convenience store in 2011, but the bulk of them have been open for less than two years.
They were supposed to boost the supermarket chain's presence in south-eastern England.
It expects to lose about £30m on the transaction and will also be remain liable for the leases on the shops if the new business fails.
Despite the failure of M local, Morrisons chief executive David Potts said: "We remain open to other opportunities in convenience in the future."
He said the reason M local failed was because it was "unable to scale". The stores made an operating loss of £36m last year.
Mr Greene is a former chairman of the Association of Convenience Stores and founded the Association of News Retailing. He chairs or is on the board of several other companies and has considerable experience with convenience stores.
Greybull Capital is the investment firm that last year put up £125m to rescue Monarch Airlines.
The 10 shops reopening under the My Local brand are:


Steelworkers facing the threat of job losses paraded a banner on the pitch ahead of the Ospreys' rugby match at the Liberty Stadium on Friday.

The Swansea-based region said it wanted to show support for workers at Tata plants in nearby Port Talbot and Llanelli, which are facing closure.
A Save our Steel banner was carried before the Guinness Pro12 game against Benetton Treviso.
The Ospreys said it was also talking to unions about how else it could help.
"Any closure would impact directly on countless Ospreys supporters, players and staff, including many of those who will be at the Liberty this Friday night," the region said in a statement.
"At times like this it is vital that a community-focused, high-profile organisation such as ours stands up for our local economy and makes a stand - backing calls for a solution to save the industry from closure."
Steelworkers also paraded the banner ahead Swansea City's football match against Chelsea last Saturday.
The show of support comes as efforts are being made to save thousands of jobs at Tata's Port Talbot steel plant.


The number of people in Britain caught driving while already banned has increased by 7.5%, according to figures obtained by BBC Radio 5 live.

Some 14,500 people were caught driving without a licence last year, Driver and Vehicle Licensing Agency data shows.
In total, 109,660 motorists were banned from driving, with the youngest being 12 and the oldest 94.
One chief constable said she was "very concerned" about the number of people disregarding driving bans.
One example included a motorist who was caught driving while banned four times in 12 months.
The same person was also convicted for failing to stop and driving without insurance at least three times.
In all, three 12-year-olds were banned last year, and cases such as theirs are dealt with by the courts in a similar way to adults.
Too young to legally drive, a non-licence holder record is set up in their name on the DVLA's database, and the offender can then only apply for a licence once their ban has expired.
Gloucestershire Chief Constable Suzette Davenport, road policing lead for the National Police Chiefs Council, said: "Generally some people who are disqualified will also be involved in other types of criminality and that might have contributed to them being banned.
"But they'll be people who are driving without insurance because they can't get insurance, because they're disqualified drivers, and so that immediately poses a risk to all of us."
Mandy Stock is all too familiar with the dangers that disqualified drivers can pose.
Her husband, Paul, was killed by a banned driver just a short walk from his front door in 2012.
Graham Godwin was described as "an absolute menace on the roads" when he was sentenced to a two-year ban - the maximum available at the time.
Godwin had 12 previous convictions for driving without insurance, nine for driving while disqualified and three for drink driving.
Mandy said her husband's death had a devastating impact: "It destroyed my life. [Paul and I] ran a business together for 25 years, which I had to shut down.
"The customers would just come in and say 'Oh, where's Paul?' or 'Paul did an estimate' and having to continually explain to people over and over and over again what had happened, it just destroyed my life."
North Yorkshire Police Traffic Constable Dan Hughes and his colleagues use intelligence, automatic number plate recognition technology and sometimes luck to track down offenders.
"There are disqualified drivers out there who will pay no regard whatsoever to the law and the justice system, and if they are told they are disqualified they will just flout that without blinking an eye," he said.
"I came across a person just a couple of weeks ago - I was dealing with him for other offences as well as driving while disqualified. He was disqualified six times over already.
"People who drive while disqualified will keep getting disqualified."
Mandy Stock was so incensed by the two-year sentence that her husband's killer received that she forced a change in the law.
Now any driver killing someone while banned from driving can be sentenced to up to 10 years in jail.
Ms Davenport said the police service was running education campaigns to try to stop people from being banned in the first place, alongside technology to help catch those who flout the law.
But she accepts some drivers will carry on regardless.
"We generally keep on arresting them and they end up in jail," she added.


A vehicle was detected speeding at 113mph (182km/h) through roadworks on a section of the M1 in Northamptonshire.

The incident happened on a stretch of motorway between junction 15 at Northampton and the junction 19 M1/M6 interchange on Saturday morning.
The section of road  is undergoing work to replace the central barrier.
Northamptonshire Police Safer Roads Team tweeted it was processing offences for the area and the vehicle averaged 113mph over a 1.8-mile stretch.


A nursing home has closed after a health watchdog found residents "were not protected from abuse and avoidable harm".

Residents were moved out of Westbury House near East Meon, Hampshire, following a Care Quality Commission (CQC) inspection.
Inspectors said potential abuse had not been investigated, the home smelt of urine and staff were not vetted.
Owner Dr Usha Naqvi called the CQC "extremely unfair and unreasonable".
The March inspection, published in June, rated the home as inadequate and put it in special measures.
It found that its 33 residents "were not protected from abuse, because safeguarding concerns were not appropriately reported or investigated".
It added: "We found that staff had gaps in their employment history, references from friends and girlfriends, and one person had a criminal record which had not been risk assessed.
"People were not protected by the prevention and control of infection.
"Carpets were frayed and dirty and smelt of urine, floors were visibly soiled, walls and floor coverings indicated visible stains and discolouring with dirt and grime."
However, it highlighted that "people and their relatives felt that staff were kind and compassionate and treated them with respect".
Dr Naqvi said the home was usually "spotlessly clean" and criticised inspectors for visiting early in the day.
He added: "We have very good staff, but they wanted us to have even more staff. What more do they want? Blood?
"The residents were very sad to leave. It's a beautiful building in exquisite countryside and it was their home, the longest had been here for 30 years.
"They didn't want to go, they were crying, they wanted pictures taken with me. I said there's nothing I can do about it.
"Quality is important, not the quantity of the nursing staff."


A woman who murdered her half-sister with a chicken-shaped ceramic pot has been jailed for life with a minimum term of 20 years.

Yvonne Caylor, 53, disguised herself with a wig and false beard when she went to carry out the killing.
Her half-sister Nicki Collingbourne, 26, was found dead in her underwear at her flat in Letchworth, Hertfordshire.
Caylor spent three hours making the attack in May look like suicide, Luton Crown Court heard.
The former welder was convicted of murder by a jury on Monday.
Live updates on Yvonne Caylor sentencing
Judge Michael Kay QC told her: "You are a violent, dishonest and deceitful person and ultimately a selfish, heartless killer."
The jury heard the motive for the murder was sparked by Ms Collingbourne's decision to evict Caylor from her flat in October 2015.
Caylor, of Grove Road, Hitchin, told police she had been assaulted but was later charged with burgling her half-sister's flat and perverting the course of justice.
She was facing a court hearing in which Ms Collingbourne was due to testify against her.
On the day of the murder, CCTV showed Caylor walking into the building at Ivel Court and knocking on her sibling's door.
She can be seen disguised in a wig and false beard and wearing a workman's jacket.
The jury heard Ms Collingbourne recognised her and tried to shut the door but the defendant forced her way in and carried out the attack.
Judge Kay QC told her: "You went to the flat in a relatively crude disguise. At first glance you were dressed as a man. You utilised some sort of padding to disguise the shape of your body.
"Only you know precisely what happened when the door was shut for the final time.
"At some point you picked up a ceramic chicken and brought it down on her head, causing her to fall to the floor.
"You then smothered Nicki Collingbourne which accounts for injuries around her mouth and attempted to make it look as if Nicki Collingbourne had committed suicide."
Ms Collingbourne's family described her as "a beautiful young woman with a beautiful soul" who was "robbed of a happy life".
Her sister Susan Hibbert-Jones said: "I miss my little sister.
"She was just beginning on life's journey and hadn't experienced half of what she should have done like getting married and having children. She would have made a wonderful mum."
Ms Collingbourne's mother Rena did not live to see her daughter's killer brought to justice.
"In my view my Mum was so devastated by Nicki's murder that it affected her health so much it cut her life short," Mrs Hibbert-Jones said .
"Mum's last few months on this earth were full of sadness and torment over the loss of her daughter."


Arsenal will be missing Kieran Gibbs, Per Mertesacker (both knee), Santi Cazorla (ankle) and Francis Coquelin (hamstring).

Arsene Wenger says he will also rest goalkeeper Petr Cech, defender Laurent Koscielny and forward Alexis Sanchez.
Defender Marnick Vermijl (groin) is a doubt for Preston, who are without Jermaine Beckford (suspension).
Midfielders Aiden McGeady and Paul Gallagher could start after continuing their returns from injury.
Gunners boss Wenger insists the FA Cup is a "big priority" for Arsenal this season and has said he will only make a couple of changes to his strongest side.
"We know as well that after a congested Christmas period that the third round is always a tricky game," he said.
"That is why I believe it is a mental challenge for the Premier League teams to prepare well and not have a bad surprise - especially when you go to a Championship team, it is always difficult."


Palestinian religious authorities are investigating how several mosques in the West Bank city of Nablus played music instead of the call to prayer.

Worshippers on Thursday had expected to hear the familiar voice of the muezzin.
Instead they were surprised to hear a song by Umm Kolthoum, one of Egypt's best-known singers.
Investigators will look at whether the recording was deliberately sabotaged or if the broadcasting system was faulty.
Public opinion about what happened appears divided between those that think it was unacceptable, and those that find it amusing, says the BBC's Yolande Knell in Jerusalem.
One video shared on social media shows a minaret from which the music is blasting. One man says, "What's that?", before saying, "a bit of Umm Kolthoum" and then giggling.
The call to prayer, known as adhan, summons Muslims to prayer five times a day.
Previous controversies have involved muezzin with bad voices, or those who have accidentally left on their microphones to broadcast coughing fits or conversations.
Last year a muezzin in Egypt faced disciplinary actions for changing some of the text to reference Facebook.


Arkansas has approved a religious freedom bill similar to one that has caused a storm of protest in Indiana.

Critics of the law say it could be used to discriminate against gay people because it gives business owners a legal defence based on their faith.
The measure now requires the signature of Republican Governor Asa Hutchinson, but it already has his backing.
A law signed last week in Indiana sparked a national outcry and calls to boycott the state.
Apple, Yelp, Angie's List, the White House and Warren Buffett were among its critics.
Sport: National Collegiate Athletic Association, NBA, basketball players Charles Barkley and Jason Collins
Business: Angie's List, Yelp, Warren Buffett, Apple, Gap, Levi's
Politics: White House, Hillary Clinton, governors of New York, Connecticut and Washington state, cities San Francisco, Indianapolis and Seattle
Celebrities: Miley Cyrus, George Takei, Larry King
The furore forced the Indiana governor to say he wanted state lawmakers to add language to the law to clarify that it is not discriminatory.
Now the focus shifts to Arkansas, where hundreds of people filled the state capitol building for a second day to protest against the measure.
Some held signs that read "Hate is Not Holy" and "We are Open for Business for All Arkansans".
The bill would prohibit state and local governments from infringing on a person's religious beliefs without a "compelling" reason.
While it makes no mention of gay people, there is a fear that businesses who are religiously opposed to same-sex weddings could refuse them service and have a legal defence against a lawsuit.
Unlike other US states with similar laws, Indiana and Arkansas grant corporations the right to religious freedom.
Mr Pence was asked at the news conference whether he had been surprised by all the fuss the legislation has provoked.
He said he was amazed. Needless to say many remain unconvinced by that explanation.
All of which leaves broadly only two conclusions.
Mike Pence is a knave or naive. And that is not a good place for a politician to be.
A messy political U-turn in Indiana
Governor Mike Pence, who signed the Indiana bill into law last week, said he "was proud to sign" it but denied the law gave businesses the right to deny services to anyone.
In recent days the governors of Connecticut, Washington state and New York have taken action against him.
They banned state-funded travel to Indiana and other states that simultaneously have Religious Freedom Restoration Act (RFRA) measures and no balancing law to protect gays and lesbians from discrimination.
But there was some support for the laws too.
The Family Research Council applauded Arkansas and said there would be no need for RFRAs "if there were not a growing hostility toward faith".


Two giants in self-driving car technology will face each other in court on Wednesday.

Ride-sharing firm Uber is accused of stealing trade secrets from Waymo - the company spun out from Google’s self-driving division.
Waymo has a requested an injunction that would stop Uber from using the disputed tech, which could severely hamper Uber’s development of self-driving cars.
Uber has denied the allegations.
Both sides will make their case to a judge in San Francisco on Wednesday morning in a bitter dispute that has become the talking point of Silicon Valley.
A judge will consider granting a preliminary injunction that would force Uber to immediately suspend use of the technology while legal proceedings were continuing.
In an increasingly angry battle, Waymo has accused Uber of being engaged in a “cover-up”.
Pleading the fifth
Waymo’s extraordinary lawsuit, filed in February, accused a former employee of downloading 14,000 documents relating to LiDAR, the system that allows self-driving cars to “see” what’s around them.
That employee, Anthony Levandowski, then went on to found Otto, a self-driving truck company later acquired by Uber for an estimated $680m, according to Bloomberg Businessweek.
Waymo said it was alerted to the possible infringement after being mistakenly copied into an email from one of Uber’s suppliers.
After analysis of employee computers, Uber denied that the 14,000 files - more than nine gigabytes of data - ever made their way to Uber’s servers.
However, the company was not able to search the personal devices of Mr Levandowski, who has invoked his Fifth Amendment rights - a constitutional clause that allows US citizens to resist any request to share information that could put them at risk of self-incrimination.
This turn of events was given short shrift by the judge, who said Uber should threaten to fire Mr Levandowski if he did not comply.
"If you cannot find them in your files, there is going to be a preliminary injunction,” Judge William Alsup warned Uber.
"You're not denying it, no one is denying he has the 14,000 files. You keep on your payroll someone who took 14,000 documents and is liable to use them.”
He added: "This is an extraordinary case. I have never seen a record this strong in 42 years. So you are up against it.”
‘Misfire'
Uber has described Waymo’s lawsuit as a “misfire”. So far, it has defended itself by insisting that the apparently stolen documents are irrelevant, as none of Waymo’s technology has made its way into Uber’s work.
It said it had been working on LiDAR technology that had little bearing on Waymo’s efforts, and that the lawsuit was a way of stifling “independent innovation”.
Besides, the company has said, the self-driving cars it is trialling on US roads at the moment use third-party LiDAR hardware - not technology produced by either Uber or Waymo.
“If Waymo genuinely thought that Uber was using its secrets, it would not have waited more than five months to seek an injunction,” Uber said.
"Waymo doesn't meet the high bar for an injunction, which would stifle our independent innovation - probably Waymo's goal in the first place.”
Uber’s denial has led to Waymo being more aggressive. It accused Uber of hiding a prototype LiDAR device - essentially covering up that it had made use, if only at an early stage, of the trade secrets at the centre of this case.
In a counter-move intended to appease the judge, Uber last week removed Mr Levandowski from his post leading the self-driving programme and into a less senior role that does not involve working on LiDAR development.
At stake in court is both companies’ progress in developing technology which court documents described as being potentially as significant as the invention of the automobile itself.
________
Follow Dave Lee on Twitter @DaveLeeBBC
You can reach Dave securely through encrypted messaging app Signal on: +1 (628) 400-7370


One hundred new nurse training places will be made available in Northern Ireland, the health minister has said.

Simon Hamilton made the announcement due to what he said was a rising demand for nurses across the health system.
The move will take the Department of Health's commission of annual student nursing places to 745.
The Royal College of Nursing in Northern Ireland said it was "very good news".
"I'm delighted that the minister has given it a priority in a financially constrained system but it's certainly a very positive step in the right direction," said Janice Smyth, a director of the college.
She added that another 1,500 nurses are still needed to plug "gaps" in Northern Ireland's nursing service.
The confirmation of additional nursing places is one of a number of new funding announcements made by Mr Hamilton in the final weeks of the Northern Ireland Assembly term before May's election.
The training places will be made available from the autumn.
Mr Hamilton said nurses are "central to the delivery of safe, effective and compassionate care".
"Even though we have increased the number of front-line nurses and midwives by 1,200 over the past four-and-a-half years, I recognise that the demand for nurses continues to rise," he said.
"I am deeply impressed by the quality of care provided by our nurses, and of the pre-registration training provided by our partner universities."
He added that nurses trained in Northern Ireland "are among the best in the world".
Mr Hamilton has also announced the set-up of a new task group to make recommendations on the future of nursing and midwifery in Northern Ireland.


Fire chiefs in the Highlands have launched a recruitment drive in a bid to fill dozens of vacancies among part-time fire crews.

Many fire stations in rural areas are staffed by firefighters who have their main jobs elsewhere.
Scottish Fire and Rescue is keen to attract more retained crew members.
But finding enough people to sign-up as part-time firefighters in some of Scotland's more remote communities has never been easy.
The latest recruitment drive has seen officers visiting local villages, handing out leaflets and speaking to potential recruits.
Many countryside residents now work in town from nine to five - so the fire service is particularly keen to target stay-at-home parents with school-age children who could be on call during those hours.
And especially women who may not have considered a part-time career as a firefighter.
Already people involved in professions like education, farming and the trades have picked up a fire service pager.
But senior officers say more are needed if local communities are to get the fire and rescue response they expect and deserve.


Numbers of white-tailed eagles, also known as sea eagles, could rise from 106 pairs of birds to 221 pairs in less than 10 years, a new study claims.

Research commissioned by Scottish Natural Heritage (SNH) predicted the growth to the year 2025 and beyond.
By 2040, the researchers suggested there could potentially be between 889 and 1,005 pairs.
However, the study added the top figure may not be reached because of a lack of suitable territory.
There have been three release phases to re-establish the large bird of prey, which became extinct in Scotland in 1917.
Two releases occurred on Scotland's west coast - on Rum from 1975 to 1985 and in Wester Ross. The third release was in Fife on the east coast from 2007 to 2012.
The report, authored by researchers at RSPB's Centre for Conservation Science, modelled a range of scenarios to predict the potential size of the sea eagle population, including scenarios with no limits on population growth.
Other scenarios included limits such as availability of suitable habitat, food and nest sites.
The return of sea eagles, the UK's largest bird of prey, to Scotland, and also increases in their numbers, have been the subject of fierce debate.
The eagles attract wildlife tourists to remote and rural parts of the Highlands and Islands.
But some farmers and crofters in these areas have told of the raptors taking lambs.
Five years ago, the Scottish Gamekeepers Association (SGA) raised concerns about whether sea eagles could differentiate between children and their natural prey.
The comment followed an incident where a senior clergyman in Abernethy, in Perthshire, was injured by a young eagle as he tried to scare it away after it attacked one of his geese.
The SGA called for a public inquiry into the impact of the reintroduction of the birds on the east coast.
RSPB Scotland described the small child claim as "alarmist nonsense".
Environment Secretary Roseanna Cunningham said the newly-released report from SNH showed the return of white-tailed eagles to Scotland was a "genuine conservation success story".
She said: "That success has not been achieved easily, and I pay tribute to all of those whose efforts over many decades have helped us reach this point.
"This story also demonstrates the importance of working together to protect and enhance our natural environment.
"That's why I also want to thank the many farmers and crofters who are working with us to find a way to ensure that they and the eagles can co-exist. Successful reintroduction projects must work with stakeholders, as well as wildlife."
Andrew Bachell, SNH's director of policy and advice, said some farmers and crofters have "serious concerns" about sea eagles taking lambs.
He said: "We are working with NFU Scotland, local stakeholders and others to thoroughly understand the part sea eagles play in livestock losses, and we're committed to working together to find solutions to allow sea eagles and livestock farmers to co-exist."
Angus MacFadyen, chairman of NFU Scotland's environment and land use committee and a sheep farmer from Argyll, said the report was a "valuable addition" to the debate on sea eagles and their impact on livestock.
He said: "It clearly flags up the fact that the sea eagle population and range is likely to dramatically increase in the coming years, and underlines the vital importance of finding ways in which to reduce predation and conflict.
"This effort is something NFU Scotland is fully committed to."
Duncan Orr-Ewing, head of species and land management at RSPB Scotland said: "We can be proud that the sea eagle is once again a key part of Scotland's internationally renowned wildlife spectacle, enthusing local people and tourists alike.
"Our population modelling work is showing that we can expect sea eagle numbers to gradually increase, and re-colonisation of much of the former range across Scotland will take place. Scientific evidence of this type will continue to play a critical role in determining future conservation actions."


Former justice minister David Ford is to bring forward legislation at Stormont seeking to legalise abortion in cases of fatal foetal abnormalities.

Earlier this week, paediatric pathologist Dr Caroline Gannon resigned over interventions by the attorney general on the issue.
The law is currently being considered by the Court of Appeal.
The Alliance Party leader said women should be able to make their own choice on the matter.
He told BBC's The View programme: "What I want to do is exactly what I wanted to do as minister and was blocked by the executive."
Mr Ford said he wanted something "which would allow abortion in the case of a fatal foetal abnormality where two doctors certified no prospect of a viable life".
The former SDLP MLA and barrister, Alban Maginness,  told The View the issue should not be decided by politicians.
"In relation to fatal foetal abnormality, it is ill-defined and you cannot define it properly," he said.
"What you have to do in these circumstances is wait for the Court of Appeal's decision and see just exactly what the Court of Appeal is saying in relation to this whole issue."
A fatal foetal abnormality diagnosis means doctors believe an unborn child has a terminal condition and will die in the womb or shortly after birth.
Earlier this week, paediatric pathologist Dr Caroline Gannon resigned over interventions by Mr Larkin
She investigated the deaths of babies including those in the womb or stillbirths.
She said the final straw was having to advise a couple to use a picnic cooler bag to return their baby's remains to NI following an abortion in England.
Unlike other parts of the UK, the 1967 Abortion Act does not extend to Northern Ireland.
Currently, a termination is only permitted in Northern Ireland if a woman's life is at risk or if there is a risk of permanent and serious damage to her mental or physical health.
In February, MLAs voted against legalising abortion in cases of fatal foetal abnormality.
Politicians have been lobbied to reform the law since 2013, when Northern Ireland woman Sarah Ewart spoke out about having to travel to Great Britain for an abortion after she was told she was carrying a baby that had no chance of survival.


A Shrewsbury secondary school has been approved for closure by a meeting of Shropshire Council's cabinet.

The unanimous decision to close the Wakeman School in 2013 came a fortnight after it achieved its best ever GCSE results.
Head teacher Karen Moore said the school would appeal and was also considering academy status, which would remove it from local authority control.
The council said the decision was due to "unsustainable" pupil numbers.
In July, Shropshire Council also confirmed the closure of four primary schools.
The Conservative-controlled authority praised staff at the Wakeman and said the closure was due to the school's financial sustainability, rather than its standard of education.
In March, Ofsted reported that the Wakeman was a good school, with a good capacity for sustained improvement and a strong leadership.
The town centre school has only 240 pupils on its roll from September, out of a capacity of 675.
School campaigners said the falling rolls had been due to rumours over the past five years regarding its future.
Pupils from the arts college have been actively campaigning against its closure since February.
Before the cabinet meeting pupils performed street theatre outside Shire Hall, recreating a crime scene in protest against the plans.
The council said the impact on pupils would be minimised by phasing the closure over two years.


Following the recent spate of bomb threats against Jewish community centres and the desecration of graves at cemeteries in Philadelphia and St. Louis, some Muslims have turned to social media to offer to guard Jewish sites.

The offers to protect religious sites have come from Muslims who include military servicemen, lawyers and Emmy Award-winning TV broadcasters.
The JCC Association of North America, a network of cultural centres, reported more than 100 bomb threats against Jewish centres in the first two months of 2017.
On Monday alone, the organisation said another 31 threats were made against Jewish centres including a gunshot fired through a Hebrew school window at an Indiana synagogue.
In a tweet, a former Muslim marine, Tayyib Rashid, pledged: "If your synagogue or Jewish cemetery needs someone to stand guard, count me in. Islam requires it."
Mr Rashid, known by his Twitter handle @MuslimMarine adds in his Periscope video that "I've seen a tremendous outpouring of love and support from all Americans, from Muslims, from my fellow Jewish Americans, from Christians, from atheists, from everyone".
The former Marine welcomes people to meet him in a local coffee shop in his home town in Grayslake, Chicago, in his "initiative to help promote peace between Muslims and non-Muslims".
He aims to open dialogue about "the recent atrocities committed by some hateful people" that were responsible for the "destruction and desecration of the graves of people of Jewish faith".
He adds: "I condemn that wholeheartedly and I stand in solidarity with all my Jewish citizens."
His now-viral tweet that has been "liked" by 12,000 supporters prompted an overwhelming number of responses from Jewish Twitter users with one inviting him over for Seder,, a ceremonial dinner held on the first two nights of Passover.
Other Muslims, including Emmy Award-winning TV Broadcaster Momin Bhatti took to social media to pledge their support in his call to protect Jewish sites.
This latest show of solidarity comes shortly after an online Muslim-led crowdfunding campaign to help repair a vandalised Jewish cemetery raised more than $150,000 (Â£122,000).
On 20 February, more than 170 headstones were damaged at the Jewish cemetery just outside St. Louis, Missouri. In the same week, 100 headstones were overturned and broken at a Jewish cemetery in Philadelphia.
Unity between Muslim and Jewish organisations was also displayed after an online campaign to raise funds for an arson damaged mosque in Florida raised more than $70,000 (Â£57,000).
Adeel Karim, a member of the Islamic Society of New Tampa, posted on his Facebook profile that he was "floored" after realising that many of the donors to the campaign were Jewish.
"I couldn't understand why people were donating in what seemed like weird amounts to the cause. There are sums of 18, 36, 72 dollars etc. then I figured out after clicking on the names Avi, Cohen, Goldstein, Rubin, Fisherâ€¦.
"Jews donate in multiples of 18 as a form of what is called 'Chai'. It wishes the recipient long life. "
President Trump opened his first speech to a joint session of Congress on 21 February by condemning the recent bomb threats and desecration of cemeteries.
"Recent threats targeting Jewish community centres and vandalism of Jewish cemeteries, as well as last week's shooting in Kansas City, remind us that while we may be a nation divided on policies, we are a country that stands united in condemning hate and evil in all its forms."
Written by Wais Bashir, UGC & Social News team


The attack that killed 38 people in the resort city of Sousse has left Tunisia looking particularly vulnerable.

It was a devastating blow to a country still struggling to recover from another attack on tourists in the heart of its capital just three months earlier.
And it was claimed by Islamic State (IS), whose actions have spread fear throughout the region and beyond.
"We note that Tunisia faces an international movement," Tunisian President Beji Caid Essebsi said shortly after Friday's attack. "It cannot respond alone to this."
While much remains unclear about the extent and nature of the threat within Tunisia that the events in Sousse may expose, observers have pointed once more to two specific risks.
First, the threat posed by neighbouring Libya, a fractured country with porous borders that has been awash with weapons since the fall of Muammar Gaddafi, and where Islamic State now has an established presence.
And second, the apparently large number of Tunisians who have left to fight in Syria and Iraq, hundreds of whom are estimated to have returned home.
Other countries in the region also face cross-border threats, and it is hard to get a truly accurate idea of how many Tunisians have been radicalised fighting abroad.
But Tunisia appears to be more exposed than its neighbours to high-impact attacks against foreign civilians.
Neither Libya nor Algeria have mass tourism, and though Morocco does, it also has a pervasive security network and has been politically stable.
Tunisia, by contrast, has a "big, soft underbelly", said Geoff Porter, the head of North Africa Risk Consulting.
"I don't think Tunisia does have a disproportionately greater jihadi problem than Algeria or Morocco," he said. "What Tunisia has is a security problem.
"It's simply that there are a greater number of targets in Tunisia and the security forces are less effective."
Full coverage of the Sousse attack
Before the uprising of 2011, the focus for those security forces was enforcing control under former President Zine al-Abidine Ben Ali - a job at which they were long efficient, developing a vast web of informers.
But security reform has been slow, and the challenge may now be for the police to repurpose towards counter-terrorism work, Mr Porter said.
That will be a complex task, partly because of the demands of training and equipping police officers and soldiers, but also because of the democratic political process and the fine line between ensuring security and reverting to repression.
In a cruel twist, some contend that Tunisia has been targeted partly because it has achieved a democratic transition and is often held up as the single success story of the Arab Spring.
Its progress as a modern democratic state on friendly terms with the West, if halting, is unwelcome to the militants of Islamic State and other extremist groups.
Over the last four years, Tunisian governments are seen to have vacillated between granting radical Islamists political space and cracking down on them - only taking the latter course more decisively after the assassination of Chokri Belaid in February 2013.
A new Tunisian anti-terrorism law that would broaden police powers and provide for harsher penalties has been stuck in committees since the start of 2014.
The attack in March on the Bardo Museum - next to the parliament building - focused attention on the bill, but shortly after it was redrafted, 13 non-governmental organisations called for it to be dropped or amended, saying it would violate international human rights standards and guarantees under the Tunisian constitution.
The president of the Tunisian parliament now says it will be approved within the next month.
Then there are the broader internal challenges.
The Tunisian economy has become more fragile since 2011, and like other states in the region, the country has a large pool of unemployed or underemployed young men who may be susceptible to radicalisation.
As Sayida Ounissi, a Tunisian member of parliament from the Islamist Ennahda party, told the BBC: "What we are seeing today is terrorism is actually nourishing itself from social exclusion, from economic injustice, from the lack of education."
In the short term, the number of potential recruits is only likely to grow as the tourist sector - which accounted for about 15% of GDP last year - takes another big hit.


The owners of Eggborough Power Station have said it will stop generating power in March 2016, subject to consultations with staff and "government bodies".

The 53-year-old coal-fired power station, near Selby, North Yorkshire, employs around 240 people.
The company said it required additional funding of Â£200m over the next three years to continue generating power.
It said it could not rule out some redundancies, though some roles might be required to support decommissioning.
Neil O'Hara, chief executive of Eggborough Power Ltd, said the company was facing an unsustainable financial position due to a combination of market and regulatory conditions, including falling power prices.
He said: "We intend to conduct a thorough consultation process with our employees and their representatives while we continue to consider all options available to us, including seeking to engage with government bodies."
He added the decision had not been taken lightly, given the station's "proud history and dedicated workforce".
Unite, the union which represents a number of employees at Eggborough, said it would have talks with the company next week.
Kelvin Mawer, regional officer with Unite, said: "It came out of the blue this morning to the whole workforce.
"I think in the climate it is a fait accompli. Unite is the major union at the site and and we will try to fight this one if there is a possibility it can be saved.
"If there isn't we have to try to mitigate the losses and ease the pain for these people."
Analysis
Danni Hewson, Business Correspondent BBC Yorkshire
Drive along the M62 from Leeds to Goole and you can't fail to notice the trail of power stations; Ferrybridge, Eggborough, Drax - decades of energy production, fired in the main by coal.
It was perhaps inevitable that Eggborough would come to this point.
Eighteen months ago it generated headlines after it failed in its bid to get government help to begin conversion to biomass.
Closure was discussed but then dismissed and in November a new buyer stepped in.
But when Ferrybridge announced its closure earlier this year many wondered how Eggborough's new owners could surf the rising cost of burning coal. Today they announced they cannot.
By March this little strip of Yorkshire could see the loss of two its three burning giants - another indication that in this country at least the age of coal is past.
Nigel Adams, the Conservative MP for Selby and Ainsty, said it was "devastating" news that he had been working to avoid.
"It is a very bleak, dark day for Eggborough," he said.
"They need Â£200m to operate over the next three years and the carbon tax over the next three years is Â£250m. You don't have to be a super economist to know those figures don't stack up.
"I have got meetings with energy ministers next week. If there is a slim chance that the power station in its current form can be saved then we will make sure we save it."
The company said the 2,000 MW power station has the potential to power two million homes - around 4% of UK properties.
The Department of Energy and Climate Change said the UK's energy security would be unaffected by the closure.
A spokesperson said: "The government takes security of supply very seriously and has worked with National Grid to put in place an effective plan which is flexible enough to adapt to individual plant closures."
The station had previously failed in its attempts to gain support from government to convert to biomass.


Iran has displayed parts of its new Russian-made air defence system during its Army Day celebrations.

Pictures released by the semi-official ISNA news agency showed S-300 missile tubes and radar equipment during a military parade in southern Tehran.
Iran insists the system is necessary to defend itself, but the US and Israel have criticised the sale.
The controversial contract got the go-ahead after last year's deal to lift international sanctions on Iran.
Six world powers led by the US agreed in July to lift the sanctions which had locked down much of Iran's economy for years, in exchange for limits on Tehran's nuclear programme.
The missile parts went on display as President Hassan Rouhani pledged to defend Muslim countries against "terrorism and Israel" while insisting that his country's neighbours should not feel threatened.
Profile: Russia's S-300 missile system
Iran 'receiving Russian missile system'
Speaking during the National Army Day parade he praised Iran's role in assisting Syrian and Iraqi forces curtail advances made by the so-called Islamic State group.
"If tomorrow your capitals face danger from terrorism or Zionism, the power that will give you a positive answer is the Islamic Republic of Iran," the president said.
The $800m (Â£562m) missile contract, signed in 2007, was frozen by Russia in 2010 because of international sanctions against Iran. President Vladimir Putin unfroze it a year ago.
The S-300, made by Rostec, can be used against multiple targets including jets, or to shoot down other missiles.
The S-300V4 variant, delivered to the Russian armed forces in 2014, can shoot down any medium-range missile in the world today, flies at five times the speed of sound and has a range of 400km (249 miles), Russia's Tass news agency reported recently.