Integrals appear to be working