sex offender jailed after 30 years