"When we realized what he was planning, we built in two fail-safes."