Added corupt functionality to ErrorSim