Update analytic code