Will Smith joins Calvin Harris: Day two of T in the Park
Calvin Harris closed the second night of T in the Park, which saw three top male artists take to the Main Stage, one after another.
US actor Will Smith made a surprise appearance, introducing Harris on to the stage.
Crowds danced to tracks including Summer, Watch Out For This and Raveology.
Singing just before the world's top-earning DJ was Paolo Nutini.
The 27-year-old pleased fans with performances of Pencil Full of Lead, Let Me Down Easy, a mash-up of Jenny Don't Be Hasty and New Shoes and Chvrches' track Recover.
Earlier in the day, he told Newsbeat there would be "a whole new buzz in a whole new setting" when T in the Park relocates to its new site next year.
"As long as the music's good, people will take to it all the same," Nutini said.
Pharrell Williams kicked off his set with Lose Yourself to Dance, before the rain started to pour.
His dancers played a key role in his set, wearing dressing gowns at one point before launching into a dance off while a DJ played Justin Timberlake's Like I Love You and Sing by Ed Sheeran.
"You know when you see someone from Scotland because they have that energy," he told the crowd as he started singing the track Lapdance, from his N.E.R.D days.
Meanwhile over on the Radio 1 Stage, the evening saw performances from The 1975 and Bombay Bicycle Club, with Elbow rounding off the night.
While Friday was sunny and warm, Saturday saw dark clouds and drizzle with some heavier rain in the evening.
It didn't deter fans and many were wearing wellies in preparation as they queued at the festival gates before they opened in the morning.
Earlier in the day, Clean Bandit performed on the Radio 1 Stage, including a rendition of their number one single Rather Be.
Violinist Milan Neil Amin-Smith told Newsbeat the band were keen to collaborate with Alesha Dixon, having been a fan of her rapping since her days in Mis-teeq.
They were preceded on stage by Ella Eyre, who wore a black sequined catsuit. She performed her debut single If I Go, which is due out next week.
Over at King Tut's Tent, George Ezra was one of the early acts to appear.
Speaking to Newsbeat earlier in the day, he said he valued his current success but would love it if someone "like Stephen Fry or David Attenborough" said they liked his music.
As of Saturday evening there had been a total of 27 arrests, with Police Scotland describing crime levels as "low".
"The event is causing us absolutely no concern at all. Everyone is well behaved and enjoying themselves," said Chief Supt Kevin Lynch, the event day commander.
"The very small minority who do break the law are being dealt with appropriately."
Highlights from the event have been available across the BBC, including on the Red Button, online and on BBC Three.