Added revert optimization scripts.