Zaslat SMS: Adaptation in stochastic environments