A former postman who crept into the homes of two women and raped them in their own beds has been jailed for seven years at the High Court in Perth.
Peter Millar, 44, who also worked as a nightclub doorman, was placed on the sex offenders register after a jury found him guilty of raping both women.
The court heard that Millar struck first in 2006 before carrying out the second attack five years later. He was charged with subsequently stalking one of his victims on Facebook.
Lord Bracadale told Millar: "The jury found you guilty of raping two women. You have no relevant previous convictions and a reasonable work record. Taking the two charges together you will be sentenced to seven years imprisonment."
Millar, Mayfield Terrace, Scone, was convicted of assaulting and raping one woman in Scone, Perthshire, between September 1 and December 30, 2006.
The jury also found him guilty of attacking and raping a second woman in the neighbouring Perthshire village of Stormontfield between February 25 and March 13, 2011.
On both occasions he was found guilty of entering their homes uninvited, entering their bedrooms, climbing into their beds and raping them.
Millar was originally charged with causing the second woman fear and alarm by repeatedly sending text and Facebook messages and harassing her with phone calls.
He was also accused of watching her home and following her. Those charges were dropped by the Crown.
Counsel Ronnie Renucci, defending, said: "It is perhaps unsurprising that throughout the reports, Mr Millar is someone who maintains his innocence in relation to these matters.
"Standing that, and the verdict of the jury, there is really nothing I can say in relation to the offences themselves. Although he still maintains his innocence, he accepts the jury have convicted him of these charges.
"He accepts and recognises these are serious offences and that a custodial sentence is inevitable. He is a mature man and someone who, up until now, has been a net contributor to society.
"He has been in full-time employment most of his adult life and has reached this stage with only one minor previous conviction. This is the first time he has ever been in custody.
"A custodial sentence is clearly going to be very difficult for Mr Millar. He is aware the impact his period in custody will have on him and his extended family."
Millar's attacks came to light after the two women, who lived a few miles apart, began to talk to each other through social media site Facebook.