A St Andrews student has been accused of blackmailing young girls into sending him sexually explicit images and videos.
Glen Wilson faces a total of 49 charges relating to the grooming of children as young as 12 and coercing them to perform sex acts on camera for him.
The charges against Wilson allege he used extortion to force eight girls into sending him sexual material.
Wilson is alleged to have groomed the girls after finding them online and then told them he would post graphic images of them to their parents and friends and on social media.
He is also accused of threatening to expose the girls to their friends if they did not continue sending him sexually explicit images.
Wilson - who was not present in court because he was sitting an exam - denies all 49 charges levelled against him.
The 18-year-old, from Agnes Blackadder Hall, St Andrews, denies targeting girls from London, Wales, Sheffield, Derby and Glasgow.
It is alleged he carried out the offences against three 12-year-olds, two 13-year-old, two 14-year-olds and a 15-year-old girl between September 2015 and June 2016.
The offences are alleged to have taken place at Wilson's family home in Longforgan.
Wilson will be tried at Perth Sheriff Court in August.