Reorganized simulation loop execution order