Use restoreProcessorState maybe