A Wallasey man has admitted a string of offences involving him indecently exposing himself to young girls near a high school.
Phillip Donoghue was told by a judge that he was concerned about his behaviour and danger to children.
"It is clearly and manifestly obsessive and abnormal behaviour which affects children," said Judge Robert Warnock.
25-year-old Donoghue, a father of one, pleaded guilty to nine offences of exposure and six offences involving indecent images of children.
Judge Warnock said that he wanted a psychiatric report preparing as he had to decide whether Donoghue should go to prison or needs treatment.
The exposure offences occurred on six days in May and June last year and involved 15 girls aged between 11 and 16.
They largely occurred in the vicinity of Weatherhead High School, Wallasey.
After his arrest he was found to have indecent images of children on a computer and USB pen drive. Donoghue admitted one charge of possessing 81 indecent images and five offences of making indecent images including videos, mainly in the lowest categories but one in a more serious group.
Hayley Cooper, defending, said that Donoghue has been seeking psychological assistance since the offences.
Donoghue, of Norwood Road, Poulton, Wallasey, was further remanded on bail to await sentence on July 16. He was ordered to sign the Sex Offenders Register and barred from working with children.