POLSON, Mont. -

A Polson man who was charged with trying to hire someone to kill his former girlfriend so she couldn't testify against him in a rape trial has entered a plea agreement that calls for a 50-year prison sentence.

KERR-AM reports 56-year-old Dennis Hobbs pleaded guilty Wednesday to two counts of rape, stalking and tampering with witnesses. Under the plea, prosecutors agreed to dismiss charges of solicitation of deliberate homicide and assault with a weapon.

Both the prosecution and defense agreed to recommend Hobbs be sentenced to 50 years in prison, with no time suspended. District Judge James Manley scheduled sentencing for Aug. 27.

If he is ever released from prison, Hobbs is to have "absolutely no contact" with the victim.