Latest simulation code