Modified SimulatedDecoder.