How protein engineering has revealed the molecular mechanisms of pore-forming toxins.