Invia SMS: Stochastic control of hereditary systems and applications