Basic simulation loop setup