PITTSBURGH—A western Pennsylvania man has been sentenced to 21 years in federal prison for pleading guilty to secretly video recording his sexual assault of an 8-year-old girl in 2009.

But 55-year-old Timothy Eugene Shearer, of Avonmore, could face more time if he's convicted next month in Westmoreland County of 17 charges that he molested and exposed himself to the same girl and a 4-year-old boy.

A federal judge in Pittsburgh ordered that all but six years of the 21-year sentence imposed Wednesday will run concurrent to any state sentence Shearer receives. That means Shearer will spend six years in federal prison after he finishes any state sentence.

Federal authorities filed the child pornography charge after Shearer's relatives last year found a tape labeled "Wildlife 3" that contained the assault on the girl.