New simulations code