A former doctor who admitted to stalking singer Shania Twain was sentenced to three years probation in a Toronto courtroom Tuesday.

In addition, John Palumbo was also ordered to remain in treatment and counseling programs.

The sentence is in addition to the seven-and-a-half years already served in pre-trial custody.

Palumbo is also barred from being within half a kilometre of any place known to him to be a residence of Twain, and ordered not to have any contact or communications, direct or indirect, with Twain, members of Twain's family or her staff.

Palumbo had been in and out of court since he entered a surprise guilty plea in the middle of his trial in late September.

Palumbo's sentencing hearing resumed Tuesday, in yet another day marked by numerous outbursts from the ex-physician.

At one point, Palumbo stood up and shouted "I am innocent, I never harmed anyone or anything" in the courtroom.

The hearing had been on hold for weeks as the court awaited a pre-sentencing report, including a psychiatric assessment.

The Crown was seeking a five-month conditional sentence that would spare Palumbo from spending more time in jail. His lawyers were hoping the judge will sentence the Ottawa man to six months of time already served.

Palumbo was denied bail Oct. 19 and remains in custody.

Before his trial came to an end, Twain described numerous lovelorn letters Palumbo sent to her residences in Ontario and Switzerland.

She testified Palumbo was spotted at her family cottage, her grandmother's funeral and at the Juno Awards in March, where he was arrested.

Palumbo's lawyer, Gary Barnes, previously said his client changed his plea after hearing Twain's heartfelt testimony.

With a report from CTV Toronto's Michelle Dube