Flow of simulation