Added new "simulateCrash" function