Undo all changes since initial redirect code