Pedophile sentenced to 32 years