SMS dit: Adaptation in stochastic environments