Made simulation loop more robust