[MOD] Added revertTo(...) statements where necessary.