Implemented stack ABA protection.