Crisis and Adaptation in Islamic History