The evolution of ATP synthase is thought to have been modular whereby two functionally independent subunits became associated and gained new functionality.