Bug Fix: fixed problems with failLevel and restartLevel