How brains stay stable and when flexibility could be helpful