More robust config.  Retention is read from config.