Flexible Adaptation in Cognitive Radios