Digging into the simulation loop