Got a somewhat messy version of aut-regeneration working.