McGregor man sentenced to 30 years in prison for child indecency