Spain’s Prime Minister Pedro Sanchez on Tuesday announced what he called a “gradual” plan to bring the country out of one of the world’s strictest lockdowns to stop the spread of the coronavirus pandemic.

The country’s death toll has been slowly coming down, but with a total of 23,822 deaths and 210,773 infections as of Tuesday, it remains one of the hardest-hit European nations behind Italy.

Under the lockdown adults had been only allowed out of the house to go to the grocery store, pharmacy or essential jobs, though that recently opened up to include construction and factory jobs.

On Sunday, Spanish children were allowed to leave their homes with parents for one hour a day, marking the first time in six weeks most of them had been outdoors.

Spaniards will be able to leave their houses for exercise with family members as of May 2, provided the control of the coronavirus continues to improve.

The first phase of lifting the lockdown on business activity in Spain will officially begin on May 4. It will allow restaurants to reopen for takeaway and gyms for individual training sessions and also training for professional athletes will be allowed.

Under the next phase, small businesses can open, but with one person inside a store at a time, though big shopping malls will open later. Hotels and apartments for tourists will be allowed to operate. Spaniards will also be allowed to move around in their own regions. Churches can open provided they are not full.

Under a third phase, restaurants can open up dining areas and movie theaters and cinemas can open but with only a third of their capacity utilized and under strict seating guidelines.

Schools will stay shut until September, though the government said it would guarantee that those under six can attend school if parents need to work, and university students can attend if they need to do exams or entrance paperwork.

Each phase will take a minimum of two weeks to reach, with Spain arriving at its new normal by end June providing the virus remains under control, says Sanchez.

A later phase will see theatres and movies able to use half their seating capacity and allow more mobility for the country, though throughout all phases wearing masks will be recommended. In this last phase, stores will be able to use half of their normal space for customers with a distance of 2 meters between persons, while rules will loosen up further for bars and restaurants.

Each Spanish region will be responsible for ensuring that it’s ready to enter the next phase.

See also: As France and Spain unveil lockdown easing plans, here’s a look at what steps European countries have taken