Fixed riemann discovery stuff