Functoriality and Endoscopy - Mathub