Separated the ErrorDetectionNetwork functions from the FSMSimulator functions by creating a separate class.