A 22-year-old man suspected of killing three people at a shopping centre in Denmark's capital Copenhagen has been charged with murder.
Two Danish citizens, both aged 17, and a 47-year-old Russian citizen were killed in Sunday's attack.
Police said the suspect had mental health issues and there is no indication of a terror motive.
He had a rifle and a knife and his shooting was random - "not motivated by gender or anything else" - they said.
The suspect appeared in front of a court in a blue T-shirt accompanied by three heavily armed officers, Danish media report.
The suspect's lawyers refused to enter a plea for the accused while the media were present and the judge ordered the rest of the hearing to be behind closed doors. The judge also imposed a name ban on both the suspect and the victims.
Speaking to reporters earlier on Monday, police chief Soeren Thomassen said they believed the suspect - described as "an ethnic Dane" - was acting alone and was not helped by anyone else.
He added that the suspect was known "peripherally" to police.
Police are also investigating videos of a young man with weapons which have been circulating on social media since Sunday, and believe them to be authentic.
Four people were seriously wounded in the attack.
Two are Danish citizens - a 40-year-old woman and a 19-year old woman. The other two are Swedes - a 50-year-old man and a 16-year old woman.
One remains in critical condition, the chief physician at one of the hospitals treating some of the victims said, giving no further details.
Dozens of heavily-armed officers have been standing guard outside the Field's shopping centre all morning, while investigators have been filing in and out.
The steps to the main entrance remain cordoned off with tape, and police vehicles line the street outside.
This is a smart office district on the outskirts of Copenhagen, but today the surroundings are quiet.
At the weekend this area would have been particularly busy. The mall is a popular spot for families and young people, and at the time of the shooting thousands of music fans were making their way to the Royal Arena concert hall, to see Harry Styles perform.
For this small Nordic country, where gun violence is rare and mass shootings are almost unheard of, Sunday's events are deeply shocking.
Only a couple of days earlier, the Tour de France had started in Copenhagen, and there had been a celebratory mood as spectators lined streets around the city.
Though it's thought the suspect acted alone, police are keeping a visible presence across the capital.
WATCH: The latest news from around the World