Revert advanced code