Update stan_caterpillar.R