I know that this piece of code is not that well documented... but so far it was a bit obvious -- now it is a bit trickier to figure out what is the 'restored' here?