Add gadget algorithm explanation.