Title: Adaptation and integration as a planning process