A man accused of sexually assaulting a young woman in a Dublin park had followed two teenage girls around the same location weeks earlier and performed a sex act on himself, it is alleged.
The 19-year-old woman went behind bushes to go to the toilet after socialising in the park when Ahmed Yagoub (56) allegedly exposed himself to her and grabbed between her legs.
In the earlier incident, he allegedly masturbated in front of two 16-year-olds after following them from a local shop.
Gardai objected to bail, saying they believed Mr Yagoub had a number of different identities and the incidents he is alleged to have been involved in "appear to be escalating".
Judge Anthony Halpin deferred a decision on bail and adjourned the case for a week at Dublin District Court.
Mr Yagoub, with an address at The Crescent, Millbrook Lawns, Tallaght, is charged with sexual assault and offensive conduct of a sexual nature by exposing himself and masturbating.
The prosecuting garda said the accused made no reply to one charge; to a second he replied "I didn't do it" and to the third: "I didn't do anything."
Objecting to bail, she said the most recent incident was alleged to have happened at a park in the west of the city on July 11.
Two friends, one aged 19 and the other aged 17 were socialising and went to go to the toilet in bushes.
The 19-year old was going to go to the toilet when she noticed a man behind her. She pulled up her trousers and he grabbed her by the buttocks, then pinched her vagina area over her clothes, the garda alleged.
She jumped up and saw the accused had his genitals exposed. The 17-year old also saw the man's testicles and started screaming. The girls ran out of the bushes and the suspect ran from the scene.
They alerted the friend they were socialising with and he recorded the suspect on his mobile phone. A garda later identified the accused from the footage.
In an earlier incident on June 26, two 16-year-olds were in a store near the park when they saw the accused and believed him to be following them.
He said hello and they asked "Are you following us?", the garda continued. He walked away and the girls left the store and walked across the car park.
Mr Yagoub could be seen in the car park and a witness said she saw the girls go into the park, with the accused following them. She could see him from behind and believed him to be masturbating.
They then turned around and it was alleged they also saw him masturbating.
Mr Yagoub told gardai he did see the girls in the shop and he was in the park but suggested that if he did take out his genitals, he may have been "peeing".
The garda said the accused had recognised himself on the video and admitted he saw the two teenagers and they were going to the toilet but denied any sexual offence.
Mr Yagoub had been working for a food company and worked under different names and with a different PPS number.
He had arrived from Argentina in January and "overstayed his welcome". He was in possession of an Algerian passport and gardai had strong suspicions he would abscond if granted bail.
Defence barrister John Griffin said the accused was married and resided at the home address given. He said the accused could lodge cash bail and sign on twice daily at a garda station.
The garda said she was still not sure of his identity and believed he had "a number of identities".