Replaced the analytic code.