Formatting
Moved FailureMode parsing to separate function